Advanced Sidebar Menu - Version 5.0.6

Version Description

Download this release

Release Info

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

Code changes from version 5.0.5 to 5.0.6

advanced-sidebar-menu.php CHANGED
@@ -4,11 +4,11 @@ Plugin Name: Advanced Sidebar Menu
4
  Plugin URI: http://matlipe.com/advanced-sidebar-menu/
5
  Description: Creates dynamic menu based on child/parent relationship.
6
  Author: Mat Lipe
7
- Version: 5.0.5
8
  Author URI: http://matlipe.com
9
  */
10
 
11
- define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '5.0.5' );
12
 
13
 
14
  #-- Define Constants
4
  Plugin URI: http://matlipe.com/advanced-sidebar-menu/
5
  Description: Creates dynamic menu based on child/parent relationship.
6
  Author: Mat Lipe
7
+ Version: 5.0.6
8
  Author URI: http://matlipe.com
9
  */
10
 
11
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '5.0.6' );
12
 
13
 
14
  #-- Define Constants
classes/Advanced_Sidebar_Menu_Deprecated.php CHANGED
@@ -28,6 +28,9 @@ class Advanced_Sidebar_Menu_Deprecated {
28
  */
29
  function page_ancestor( $pID ) {
30
  global $post;
 
 
 
31
 
32
  if( $pID->ID == $post->ID or $pID->ID == $post->post_parent or @in_array( $pID->ID, $post->ancestors ) ){
33
  $return = true;
28
  */
29
  function page_ancestor( $pID ) {
30
  global $post;
31
+ if( is_numeric( $pID ) ){
32
+ $pID = get_post( $pID );
33
+ }
34
 
35
  if( $pID->ID == $post->ID or $pID->ID == $post->post_parent or @in_array( $pID->ID, $post->ancestors ) ){
36
  $return = true;
classes/Advanced_Sidebar_Menu_List_Pages.php CHANGED
@@ -258,7 +258,6 @@ class Advanced_Sidebar_Menu_List_Pages{
258
  */
259
  private function current_page_ancestor( $page_id ) {
260
  $return = false;
261
-
262
  if( !empty( $this->current_page_id ) ){
263
  if( $page_id == $this->current_page_id ){
264
  $return = true;
258
  */
259
  private function current_page_ancestor( $page_id ) {
260
  $return = false;
 
261
  if( !empty( $this->current_page_id ) ){
262
  if( $page_id == $this->current_page_id ){
263
  $return = true;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypa
5
  Tags: menus, sidebar menu, heirchy, category menu, pages menu
6
  Requires at least: 3.8.0
7
  Tested up to: 4.2.2
8
- Stable tag: 5.0.5
9
 
10
  Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11
 
5
  Tags: menus, sidebar menu, heirchy, category menu, pages menu
6
  Requires at least: 3.8.0
7
  Tested up to: 4.2.2
8
+ Stable tag: 5.0.6
9
 
10
  Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11