WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/31/2010 11:02:17 AM (9 years ago)
Author:
scribu
Message:

use get_queried_object() wrappers throughout. See #14015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r16098 r16114  
    174174 */
    175175function wp_admin_bar_edit_menu () {
    176     global $wp_admin_bar, $wp_query;
    177 
    178     $current_object = $wp_query->get_queried_object();
     176    global $wp_admin_bar;
     177
     178    $current_object = get_queried_object();
    179179
    180180    if ( empty($current_object) )
Note: See TracChangeset for help on using the changeset viewer.