Skip to content

Commit

Permalink
= 4.2.6.5 =
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnxt89 committed Apr 17, 2024
1 parent f779d54 commit ae1877e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 3 additions & 6 deletions config/elementor/instructor/single-instructor.php
Expand Up @@ -6,10 +6,10 @@
use Elementor\Controls_Manager;

return apply_filters(
'learn-press/courses-settings-fields',
'learn-press/elementor/single-instructor',
array_merge(
apply_filters(
'learn-press/elementor/tab-content/fields',
'learn-press/elementor/single-instructor/tab-content/fields',
[
'section_content' => [
'type_detect' => 'section',
Expand All @@ -28,9 +28,6 @@
'end_section' => [],
]
),
apply_filters(
'learn-press/elementor/tab-styles/fields',
[]
)
[]
)
);
4 changes: 4 additions & 0 deletions inc/Databases/class-lp-user-items-db.php
Expand Up @@ -140,6 +140,10 @@ public function get_user_items( LP_User_Items_Filter $filter, int &$total_rows =
$filter->where[] = $this->wpdb->prepare( 'AND ui.item_id = %s', $filter->item_id );
}

if ( ! empty( $filter->graduation ) ) {
$filter->where[] = $this->wpdb->prepare( 'AND ui.graduation = %s', $filter->graduation );
}

$filter = apply_filters( 'lp/user_items/query/filter', $filter );

return $this->execute( $filter, $total_rows );
Expand Down
2 changes: 0 additions & 2 deletions inc/Filters/class-lp-filter.php
Expand Up @@ -123,8 +123,6 @@ class LP_Filter {
* @var object stdclass
*/
public $filter_extra;

public function __construct() {}
}


0 comments on commit ae1877e

Please sign in to comment.