Advanced Sidebar Menu - Version 7.6.6

Version Description

Download this release

Release Info

Developer Mat Lipe
Plugin Icon 128x128 Advanced Sidebar Menu
Version 7.6.6
Comparing to
See all releases

Code changes from version 7.6.5 to 7.6.6

advanced-sidebar-menu.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
5
  * Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
6
  * Author: OnPoint Plugins
7
- * Version: 7.6.5
8
  * Author URI: https://onpointplugins.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.6.5' );
19
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
20
 
21
  if ( ! function_exists( 'advanced_sidebar_menu_load' ) ) {
4
  * Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
5
  * Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
6
  * Author: OnPoint Plugins
7
+ * Version: 7.6.6
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  *
15
  return;
16
  }
17
 
18
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.6.6' );
19
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
20
 
21
  if ( ! function_exists( 'advanced_sidebar_menu_load' ) ) {
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: menus, sidebar menu, hierarchy, category menu, pages menu
6
  Requires at least: 4.8.0
7
  Tested up to: 5.3.0
8
  Requires PHP: 5.6.0
9
- Stable tag: 7.6.5
10
 
11
  == Description ==
12
 
6
  Requires at least: 4.8.0
7
  Tested up to: 5.3.0
8
  Requires PHP: 5.6.0
9
+ Stable tag: 7.6.6
10
 
11
  == Description ==
12
 
src/List_Pages.php CHANGED
@@ -307,7 +307,6 @@ class Advanced_Sidebar_Menu_List_Pages {
307
 
308
  $child_pages = array_map( 'get_post', (array) $child_pages );
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
  }
307
 
308
  $child_pages = array_map( 'get_post', (array) $child_pages );
309
 
 
310
  if ( $is_first_level ) {
311
  return apply_filters( 'advanced-sidebar-menu/list-pages/first-level-child-pages', $child_pages, $this, $this->menu );
312
  }
src/Menus/Abstract.php CHANGED
@@ -1,7 +1,5 @@
1
  <?php
2
 
3
- use Prophecy\Argument\Token\StringContainsToken;
4
-
5
  /**
6
  * Advanced_Sidebar_Menu_Menus_Abstract
7
  *
1
  <?php
2
 
 
 
3
  /**
4
  * Advanced_Sidebar_Menu_Menus_Abstract
5
  *
src/Menus/Category.php CHANGED
@@ -461,7 +461,7 @@ class Advanced_Sidebar_Menu_Menus_Category extends Advanced_Sidebar_Menu_Menus_A
461
  echo apply_filters( 'advanced_sidebar_menu_category_widget_output', $output, $this->args, $this->instance, $this );
462
 
463
  if ( $close_menu ) {
464
- // @since 7.6.5
465
  do_action( 'advanced-sidebar-menu/menus/category/render/after', $this );
466
 
467
  echo $this->args['after_widget'];
@@ -469,7 +469,7 @@ class Advanced_Sidebar_Menu_Menus_Category extends Advanced_Sidebar_Menu_Menus_A
469
  }
470
 
471
  if ( ! $close_menu && $menu_open ) {
472
- // @since 7.6.5
473
  do_action( 'advanced-sidebar-menu/menus/category/render/after', $this );
474
 
475
  echo $this->args['after_widget'];
461
  echo apply_filters( 'advanced_sidebar_menu_category_widget_output', $output, $this->args, $this->instance, $this );
462
 
463
  if ( $close_menu ) {
464
+ // @since 7.6.5.
465
  do_action( 'advanced-sidebar-menu/menus/category/render/after', $this );
466
 
467
  echo $this->args['after_widget'];
469
  }
470
 
471
  if ( ! $close_menu && $menu_open ) {
472
+ // @since 7.6.5.
473
  do_action( 'advanced-sidebar-menu/menus/category/render/after', $this );
474
 
475
  echo $this->args['after_widget'];
src/Menus/Page.php CHANGED
@@ -185,7 +185,7 @@ class Advanced_Sidebar_Menu_Menus_Page extends Advanced_Sidebar_Menu_Menus_Abstr
185
  $output = require Advanced_Sidebar_Menu_Core::instance()->get_template_part( 'page_list.php' );
186
  echo apply_filters( 'advanced_sidebar_menu_page_widget_output', $output, $this->get_current_post(), $this->args, $this->instance, $this );
187
 
188
- // @since 7.6.5
189
  do_action( 'advanced-sidebar-menu/menus/page/render/after', $this );
190
 
191
  echo $this->args['after_widget'];
185
  $output = require Advanced_Sidebar_Menu_Core::instance()->get_template_part( 'page_list.php' );
186
  echo apply_filters( 'advanced_sidebar_menu_page_widget_output', $output, $this->get_current_post(), $this->args, $this->instance, $this );
187
 
188
+ // @since 7.6.5.
189
  do_action( 'advanced-sidebar-menu/menus/page/render/after', $this );
190
 
191
  echo $this->args['after_widget'];
src/Widget/Category.php CHANGED
@@ -305,6 +305,10 @@ class Advanced_Sidebar_Menu_Widget_Category extends Advanced_Sidebar_Menu__Widge
305
  do_action( 'advanced_sidebar_menu_widget_pre_render', $asm, $this );
306
 
307
  $asm->render();
 
 
 
 
308
  }
309
 
310
  }
305
  do_action( 'advanced_sidebar_menu_widget_pre_render', $asm, $this );
306
 
307
  $asm->render();
308
+
309
+ // @since 7.6.6.
310
+ do_action( 'advanced-sidebar-menu/widget/after-render', $asm, $this );
311
+
312
  }
313
 
314
  }
src/Widget/Page.php CHANGED
@@ -313,5 +313,8 @@ class Advanced_Sidebar_Menu_Widget_Page extends Advanced_Sidebar_Menu__Widget__W
313
 
314
  $asm->render();
315
 
 
 
 
316
  }
317
  }
313
 
314
  $asm->render();
315
 
316
+ // @since 7.6.6.
317
+ do_action( 'advanced-sidebar-menu/widget/after-render', $asm, $this );
318
+
319
  }
320
  }