PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | inc/admin/sub-menus/abstract-submenu.php +5 -2 4.3.8 → 4.4.9 View file →
@@ -95,9 +95,9 @@
95 95 public function enqueue_assets() {
96 96 }
97 97
98 98 public function is_displaying() {
99 - return $this->get_id() === LP_Request::get_string( 'page' );
99 + return $this->get_id() === LP_Request::get_param( 'page' );
100 100 }
101 101
102 102 /**
103 103 * @return string
@@ -347,9 +347,12 @@
347 347 <?php
348 348 $classes = array( 'lp-admin-tabs' );
349 349 $sections = $this->get_sections();
350 350
351 - if ( $sections && sizeof( $sections ) > 1 ) {
351 + $has_sections = $sections && sizeof( $sections ) > 1;
352 + $has_sections = apply_filters( 'learn-press/admin/submenu-has-sections', $has_sections, $sections, $active_tab, $this );
353 +
354 + if ( $has_sections ) {
352 355 $classes[] = 'has-sections';
353 356 }
354 357
355 358 ob_start();