Making WordPress.org

Ticket #5759: 5759.patch

File 5759.patch, 1.8 KB (added by Clorith, 3 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/footer.php

    diff --git a/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/footer.php b/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/footer.php
    a b  
    99        </div><!-- #content -->
    1010</div><!-- #page -->
    1111
    12 <?php require WPORGPATH . 'footer.php';
     12<?php wporg_get_global_footer();
     13
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    diff --git a/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php b/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
    a b  
    279279        }
    280280
    281281        require WPORGPATH . 'header.php';
     282
     283        // Conditionally run `wp_head()` to get enqueued styles and scripts when using a remote header.
     284        if ( ! did_action( 'wp_head' ) ) {
     285                wp_head();
     286        }
    282287}
    283288
    284289function wporg_support_bbp_raw_title( $title ) {
     
    297302 */
    298303function wporg_get_global_footer() {
    299304        require WPORGPATH . 'footer.php';
     305
     306        // Conditionally run `wp_footer()` to get enqueued styles and scripts when using a remote header.
     307        if ( ! did_action( 'wp_footer' ) ) {
     308                wp_footer();
     309        }
    300310}
    301311
    302312/**