Version Description
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 7.4.3 |
Comparing to | |
See all releases |
Code changes from version 7.4.2 to 7.4.3
- advanced-sidebar-menu.php +2 -2
- readme.txt +2 -2
- src/List_Pages.php +9 -5
- src/Menus/Page.php +7 -4
advanced-sidebar-menu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://matlipe.com/advanced-sidebar-menu/
|
5 |
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
* Author: Mat Lipe
|
7 |
-
* Version: 7.4.
|
8 |
* Author URI: https://matlipe.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
*
|
@@ -15,7 +15,7 @@ if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
|
|
15 |
return;
|
16 |
}
|
17 |
|
18 |
-
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.4.
|
19 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
|
20 |
|
21 |
if ( ! function_exists( 'advanced_sidebar_menu_load' ) ) {
|
4 |
* Plugin URI: https://matlipe.com/advanced-sidebar-menu/
|
5 |
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
* Author: Mat Lipe
|
7 |
+
* Version: 7.4.3
|
8 |
* Author URI: https://matlipe.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
*
|
15 |
return;
|
16 |
}
|
17 |
|
18 |
+
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.4.3' );
|
19 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
|
20 |
|
21 |
if ( ! function_exists( 'advanced_sidebar_menu_load' ) ) {
|
readme.txt
CHANGED
@@ -4,9 +4,9 @@ Contributors: Mat Lipe
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40matlipe%2ecom&lc=US&item_name=Advanced%20Sidebar%20Menu&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
5 |
Tags: menus, sidebar menu, hierarchy, category menu, pages menu
|
6 |
Requires at least: 4.6.0
|
7 |
-
Tested up to:
|
8 |
Requires PHP: 5.2.4
|
9 |
-
Stable tag: 7.4.
|
10 |
|
11 |
== Description ==
|
12 |
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40matlipe%2ecom&lc=US&item_name=Advanced%20Sidebar%20Menu&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
5 |
Tags: menus, sidebar menu, hierarchy, category menu, pages menu
|
6 |
Requires at least: 4.6.0
|
7 |
+
Tested up to: 5.0.0
|
8 |
Requires PHP: 5.2.4
|
9 |
+
Stable tag: 7.4.3
|
10 |
|
11 |
== Description ==
|
12 |
|
src/List_Pages.php
CHANGED
@@ -330,12 +330,16 @@ class Advanced_Sidebar_Menu_List_Pages {
|
|
330 |
|
331 |
$child_pages = array_map( 'get_post', (array) $child_pages );
|
332 |
|
333 |
-
//
|
334 |
if ( $is_first_level ) {
|
335 |
-
|
336 |
-
|
337 |
-
$
|
338 |
-
|
|
|
|
|
|
|
|
|
339 |
|
340 |
$child_pages = apply_filters( 'advanced-sidebar-menu/list-pages/first-level-child-pages', $child_pages, $this, $this->menu );
|
341 |
}
|
330 |
|
331 |
$child_pages = array_map( 'get_post', (array) $child_pages );
|
332 |
|
333 |
+
// We only filter the first level with this filter for backward pro compatibility.
|
334 |
if ( $is_first_level ) {
|
335 |
+
$child_pages = apply_filters_deprecated( 'advanced_sidebar_menu_child_pages', array(
|
336 |
+
$child_pages,
|
337 |
+
$this->current_page,
|
338 |
+
$this->menu->instance,
|
339 |
+
$this->menu->args,
|
340 |
+
$this->menu,
|
341 |
+
), '7.1.0', 'advanced-sidebar-menu/list-pages/first-level-child-pages' );
|
342 |
+
|
343 |
|
344 |
$child_pages = apply_filters( 'advanced-sidebar-menu/list-pages/first-level-child-pages', $child_pages, $this, $this->menu );
|
345 |
}
|
src/Menus/Page.php
CHANGED
@@ -94,10 +94,13 @@ class Advanced_Sidebar_Menu_Menus_Page extends Advanced_Sidebar_Menu_Menus_Abstr
|
|
94 |
}
|
95 |
}
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
$
|
100 |
-
|
|
|
|
|
|
|
101 |
|
102 |
return apply_filters( 'advanced-sidebar-menu/menus/page/is-displayed', $display, $this->args, $this->instance, $this );
|
103 |
|
94 |
}
|
95 |
}
|
96 |
|
97 |
+
$display = ! apply_filters_deprecated( 'advanced_sidebar_menu_proper_single', array(
|
98 |
+
! $display,
|
99 |
+
$this->args,
|
100 |
+
$this->instance,
|
101 |
+
$this,
|
102 |
+
), '7.0.0', 'advanced-sidebar-menu/menus/page/is-displayed' );
|
103 |
+
|
104 |
|
105 |
return apply_filters( 'advanced-sidebar-menu/menus/page/is-displayed', $display, $this->args, $this->instance, $this );
|
106 |
|