Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47108 r47122  
    123123     */
    124124    public function add_node( $args ) {
    125         // Shim for old method signature: add_node( $parent_id, $menu_obj, $args )
     125        // Shim for old method signature: add_node( $parent_id, $menu_obj, $args ).
    126126        if ( func_num_args() >= 3 && is_string( $args ) ) {
    127127            $args = array_merge( array( 'parent' => $args ), func_get_arg( 2 ) );
     
    608608     */
    609609    public function add_menus() {
    610         // User related, aligned right.
     610        // User-related, aligned right.
    611611        add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_menu', 0 );
    612612        add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 );
     
    614614        add_action( 'admin_bar_menu', 'wp_admin_bar_recovery_mode_menu', 8 );
    615615
    616         // Site related.
     616        // Site-related.
    617617        add_action( 'admin_bar_menu', 'wp_admin_bar_sidebar_toggle', 0 );
    618618        add_action( 'admin_bar_menu', 'wp_admin_bar_wp_menu', 10 );
     
    622622        add_action( 'admin_bar_menu', 'wp_admin_bar_updates_menu', 50 );
    623623
    624         // Content related.
     624        // Content-related.
    625625        if ( ! is_network_admin() && ! is_user_admin() ) {
    626626            add_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
Note: See TracChangeset for help on using the changeset viewer.