Making WordPress.org


Ignore:
Timestamp:
02/22/2017 05:56:27 PM (8 years ago)
Author:
coffee2code
Message:

Handbook plugin: When determining menu item highlighting, more directly just filter menu items by object_id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php

    r4788 r4984  
    491491            $page = get_page_by_path( $page_slug );
    492492            if ( $page ) {
    493                 $url = get_page_link( $page );
    494                 $root_handbook_menu_item = wp_filter_object_list( $menu_items, array( 'url' => $url ) );
     493                $root_handbook_menu_item = wp_filter_object_list( $menu_items, array( 'object_id' => $page->ID ) );
    495494            }
    496495        }
Note: See TracChangeset for help on using the changeset viewer.