Advanced Sidebar Menu - Version 7.4.3

Version Description

Download this release

Release Info

Developer Mat Lipe
Plugin Icon 128x128 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 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.2
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.2' );
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&currency_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: 4.9.8
8
Requires PHP: 5.2.4
9
- Stable tag: 7.4.2
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&currency_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
- //we only filter the first level with this filter for backward pro compatibility
334
if ( $is_first_level ) {
335
- if ( has_filter( 'advanced_sidebar_menu_child_pages' ) ) {
336
- _deprecated_hook( 'advanced_sidebar_menu_child_pages', '7.1.0', 'advanced-sidebar-menu/list-pages/first-level-child-pages' );
337
- $child_pages = apply_filters( 'advanced_sidebar_menu_child_pages', $child_pages, $this->current_page, $this->menu->instance, $this->menu->args, $this->menu );
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
- if ( has_filter( 'advanced_sidebar_menu_proper_single' ) ) {
98
- _deprecated_hook( 'advanced_sidebar_menu_proper_single', '7.0.0', 'advanced-sidebar-menu/menus/page/is-displayed' );
99
- $display = ! apply_filters( 'advanced_sidebar_menu_proper_single', ! $display, $this->args, $this->instance, $this );
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