WordPress.org

Making WordPress.org

Changeset 8245


Ignore:
Timestamp:
02/14/2019 04:52:09 AM (2 months ago)
Author:
tellyworth
Message:

Main: don't overwrite in_wrapper if already set.

See #4174, #4109

File:
1 edited

Legend:

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

    r8241 r8245  
    1212namespace WordPressdotorg\Theme;
    1313
    14 $GLOBALS['wporg_global_header_options'] = array(
    15     'in_wrapper' => '<a class="skip-link screen-reader-text" href="#content">' . esc_html( 'Skip to content', 'wporg' ) . '</a>',
    16 );
     14global $wporg_global_header_options;
     15if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     16    $wporg_global_header_options['in_wrapper'] = '';
     17$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html( 'Skip to content', 'wporg' ) . '</a>';
     18
    1719get_template_part( 'header', 'wporg' );
    1820?>
Note: See TracChangeset for help on using the changeset viewer.