Ticket #16798: 16798.2.patch
File 16798.2.patch, 612 bytes (added by , 12 years ago) |
---|
-
wp-includes/admin-bar.php
260 260 * @since 3.1.0 261 261 */ 262 262 function wp_admin_bar_edit_menu( $wp_admin_bar ) { 263 global $post, $tag ;263 global $post, $tag, $wp_the_query; 264 264 265 265 if ( is_admin() ) { 266 266 $current_screen = get_current_screen(); … … 288 288 ) ); 289 289 } 290 290 } else { 291 $current_object = get_queried_object();291 $current_object = $wp_the_query->get_queried_object(); 292 292 293 293 if ( empty($current_object) ) 294 294 return;