Make WordPress Core


Ignore:
Timestamp:
05/23/2016 06:58:48 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files.

Applying these specially-crafted @see tags allows the Code Reference parser to recognize and link these elements as actions and filters.

See #36921.

File:
1 edited

Legend:

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

    r37518 r37542  
    1212 *
    1313 * UNHOOKING THIS FUNCTION WILL NOT PROPERLY REMOVE THE ADMIN BAR.
    14  * For that, use show_admin_bar(false) or the 'show_admin_bar' filter.
     14 * For that, use show_admin_bar(false) or the {@see 'show_admin_bar'} filter.
    1515 *
    1616 * @since 3.1.0
     
    5252
    5353/**
    54  * Render the admin bar to the page based on the $wp_admin_bar->menu member var.
    55  * This is called very late on the footer actions so that it will render after anything else being
    56  * added to the footer.
    57  *
    58  * It includes the action "admin_bar_menu" which should be used to hook in and
    59  * add new menus to the admin bar. That way you can be sure that you are adding at most optimal point,
    60  * right before the admin bar is rendered. This also gives you access to the $post global, among others.
     54 * Renders the admin bar to the page based on the $wp_admin_bar->menu member var.
     55 *
     56 * This is called very late on the footer actions so that it will render after
     57 * anything else being added to the footer.
     58 *
     59 * It includes the {@see 'admin_bar_menu'} action which should be used to hook in and
     60 * add new menus to the admin bar. That way you can be sure that you are adding at most
     61 * optimal point, right before the admin bar is rendered. This also gives you access to
     62 * the `$post` global, among others.
    6163 *
    6264 * @since 3.1.0
     
    873875
    874876/**
    875  * Set the display status of the admin bar.
    876  *
    877  * This can be called immediately upon plugin load. It does not need to be called from a function hooked to the init action.
     877 * Sets the display status of the admin bar.
     878 *
     879 * This can be called immediately upon plugin load. It does not need to be called
     880 * from a function hooked to the {@see 'init'} action.
    878881 *
    879882 * @since 3.1.0
Note: See TracChangeset for help on using the changeset viewer.