Version Description
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 7.5.5 |
Comparing to | |
See all releases |
Code changes from version 7.5.4 to 7.5.5
- advanced-sidebar-menu.php +1 -1
- readme.txt +2 -2
- src/List_Pages.php +5 -2
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.5.
|
8 |
* Author URI: https://matlipe.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
*
|
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.5.5
|
8 |
* Author URI: https://matlipe.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
*
|
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.7.0
|
7 |
-
Tested up to: 5.2.
|
8 |
Requires PHP: 5.4.4
|
9 |
-
Stable tag: 7.5.
|
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.7.0
|
7 |
+
Tested up to: 5.2.1
|
8 |
Requires PHP: 5.4.4
|
9 |
+
Stable tag: 7.5.5
|
10 |
|
11 |
== Description ==
|
12 |
|
src/List_Pages.php
CHANGED
@@ -285,6 +285,8 @@ class Advanced_Sidebar_Menu_List_Pages {
|
|
285 |
* @param int $parent_page_id - Page id we are getting children of.
|
286 |
* @param bool $is_first_level - Is this the first level of child pages?.
|
287 |
*
|
|
|
|
|
288 |
* @return WP_Post[]
|
289 |
*/
|
290 |
public function get_child_pages( $parent_page_id, $is_first_level = false ) {
|
@@ -307,10 +309,11 @@ class Advanced_Sidebar_Menu_List_Pages {
|
|
307 |
|
308 |
// We only filter the first level with this filter for backward pro compatibility.
|
309 |
if ( $is_first_level ) {
|
310 |
-
|
311 |
}
|
312 |
|
313 |
-
|
|
|
314 |
|
315 |
}
|
316 |
|
285 |
* @param int $parent_page_id - Page id we are getting children of.
|
286 |
* @param bool $is_first_level - Is this the first level of child pages?.
|
287 |
*
|
288 |
+
* @since 7.5.5 - Add 'advanced-sidebar-menu/list-pages/grandchild-pages' filter.
|
289 |
+
*
|
290 |
* @return WP_Post[]
|
291 |
*/
|
292 |
public function get_child_pages( $parent_page_id, $is_first_level = false ) {
|
309 |
|
310 |
// We only filter the first level with this filter for backward pro compatibility.
|
311 |
if ( $is_first_level ) {
|
312 |
+
return apply_filters( 'advanced-sidebar-menu/list-pages/first-level-child-pages', $child_pages, $this, $this->menu );
|
313 |
}
|
314 |
|
315 |
+
// @since 7.5.5
|
316 |
+
return apply_filters( 'advanced-sidebar-menu/list-pages/grandchild-pages', $child_pages, $this, $this->menu );
|
317 |
|
318 |
}
|
319 |
|