Making WordPress.org

Changeset 8246


Ignore:
Timestamp:
02/14/2019 05:04:36 AM (6 years ago)
Author:
tellyworth
Message:

Support theme: 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-support/header.php

    r8239 r8246  
    1919);
    2020
    21 $GLOBALS['wporg_global_header_options'] = array(
    22     'in_wrapper' => '<a class="skip-link screen-reader-text" href="#content">' . esc_html( 'Skip to content', 'wporg-forums' ) . '</a>',
    23 );
     21global $wporg_global_header_options;
     22if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     23    $wporg_global_header_options['in_wrapper'] = '';
     24$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html( 'Skip to content', 'wporg-forums' ) . '</a>';
    2425wporg_get_global_header();
    2526?>
Note: See TracChangeset for help on using the changeset viewer.