Making WordPress.org

Changeset 9490


Ignore:
Timestamp:
02/11/2020 12:55:58 PM (7 years ago)
Author:
ocean90
Message:

Translate: After [WP47221], don't try to render the toolbar twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/class-plugin.php

    r9314 r9490  
    203203                gp_enqueue_style( 'admin-bar' );
    204204
    205                 add_action( 'gp_footer', 'wp_admin_bar_render', 1000 );
     205                if ( ! did_action( 'wp_body_open' ) ) {
     206                        add_action( 'gp_footer', 'wp_admin_bar_render', 1000 );
     207                }
    206208        }
    207209
     
    365367        /**
    366368         * Localize any WordPress.org links.
    367          * 
     369         *
    368370         * @param string $content   The content to search for WordPress.org links in.
    369371         * @param string $wp_locale The WP_Locale subdomain that the content should reference.
Note: See TracChangeset for help on using the changeset viewer.