Make WordPress Core

Ticket #60021: 60021.diff

File 60021.diff, 1.1 KB (added by shailu25, 2 years ago)

Added Since before global & added global before param in documentation as per php coding standard in src/wp-includes/admin-bar.php

  • src/wp-includes/admin-bar.php

    diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php
    index 3eba2668fa..c671082fdd 100644
    a b function wp_admin_bar_site_menu( $wp_admin_bar ) { 
    455455 * Adds the "Edit site" link to the Toolbar.
    456456 *
    457457 * @since 5.9.0
     458 *
     459 * @since 6.3.0 Added `$_wp_current_template_id` global for editing of current template directly from the admin bar.
    458460 *
    459461 * @global string $_wp_current_template_id
    460  * @since 6.3.0 Added `$_wp_current_template_id` global for editing of current template directly from the admin bar.
    461462 *
    462463 * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
    463464 */
    function wp_admin_bar_edit_site_menu( $wp_admin_bar ) { 
    493494 * Adds the "Customize" link to the Toolbar.
    494495 *
    495496 * @since 4.3.0
     497 *
     498 * @global WP_Customize_Manager $wp_customize
    496499 *
    497500 * @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
    498  * @global WP_Customize_Manager $wp_customize
    499501 */
    500502function wp_admin_bar_customize_menu( $wp_admin_bar ) {
    501503        global $wp_customize;