Making WordPress.org

Changeset 9555


Ignore:
Timestamp:
03/01/2020 12:42:33 PM (7 years ago)
Author:
ocean90
Message:

Translate: Remove now unnecessary wp_admin_bar_render callback on gp_footer.

Reverts [9490] and [9502].

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-admin-bar.php

    r9502 r9555  
    2222
    2323        foreach ( $nodes as $node ) {
    24                 if ( !empty( $node ) ) {
    25                         $node->href = $about_url;
     24                $node->href = $about_url;
    2625
    27                         $wp_admin_bar->add_node( $node );
    28                 }
     26                $wp_admin_bar->add_node( $node );
    2927        }
    3028}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/class-plugin.php

    r9490 r9555  
    194194
    195195        /**
    196          * Renders the toolbar.
     196         * Makes admin bar compatible with GlotPress' custom header
     197         * and script loader.
    197198         */
    198199        public function show_admin_bar() {
    … …  
    202203                gp_enqueue_script( 'admin-bar' );
    203204                gp_enqueue_style( 'admin-bar' );
    204 
    205                 if ( ! did_action( 'wp_body_open' ) ) {
    206                         add_action( 'gp_footer', 'wp_admin_bar_render', 1000 );
    207                 }
    208205        }
    209206
Note: See TracChangeset for help on using the changeset viewer.