Skip to content

Commit

Permalink
= 4.2.7.4 =
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnxt89 committed Nov 22, 2024
1 parent e1cab6d commit b8e7580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
<exclude name="WordPress.DB.PreparedSQL.InterpolatedNotPrepared" />
<exclude name="Generic.WhiteSpace.IncrementDecrementSpacing.SpaceAfterIncrement" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
</rule>
</ruleset>
4 changes: 3 additions & 1 deletion templates/profile/tabs/orders/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
* @version 4.0.1
*/

use LearnPress\Helpers\Template;

defined( 'ABSPATH' ) || exit();

$profile = LP_Profile::instance();

$query_orders = $profile->query_orders( array( 'fields' => 'ids' ) );
if ( ! $query_orders->get_items() ) {
learn_press_display_message( __( 'No orders!', 'learnpress' ) );
Template::print_message( __( 'No orders!', 'learnpress' ), 'info' );
return;
}
?>
Expand Down

0 comments on commit b8e7580

Please sign in to comment.