WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/15/2019 03:54:03 AM (16 months ago)
Author:
dd32
Message:

Support: Move the update-php strings from the Helphub to the Support Theme for easier usage by locales.

This also switches the page template used from page.php to page-full-width.php on non-en_US sites to avoid some edgecases.

See #4139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/page-update-php.php

    r8071 r8254  
    99/*
    1010Use the default template for pages. This specific template is only used to indicate that the content needs to be
    11 manually injected, which happens in the HelpHub plugin.
     11manually injected, which happens in `helphub-update-php-strings.php`
    1212 */
    13 require get_stylesheet_directory() . '/page.php';
     13if ( 'en_US' == get_locale() ) {
     14    // Helphub will be active, so we need it's sidebar
     15    require get_stylesheet_directory() . '/page.php';
     16} else {
     17    // Helphub may be active, but we're loading in a non-en_US locale so shouldn't display the EN sidebar
     18    require get_stylesheet_directory() . '/page-full-width.php';
     19}
Note: See TracChangeset for help on using the changeset viewer.