Make WordPress Core


Ignore:
Timestamp:
01/14/2019 11:11:20 PM (6 years ago)
Author:
pento
Message:

Docs: Improve the docblock of wp_admin_bar_edit_menu().

What age were you when you learned that there's a $user_id global, as well as $user_ID global? I was today years old.

Props pento, mukesh27.
Fixes #43448.

File:
1 edited

Legend:

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

    r43590 r44586  
    678678 * @global WP_Term  $tag
    679679 * @global WP_Query $wp_the_query
     680 * @global int      $user_id      The ID of the user being edited. Not to be confused with the
     681 *                                global $user_ID, which contains the ID of the current user.
    680682 *
    681683 * @param WP_Admin_Bar $wp_admin_bar
Note: See TracChangeset for help on using the changeset viewer.