Making WordPress.org

Changeset 8248


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

Plugins 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-plugins/header.php

    r8227 r8248  
    1919
    2020$GLOBALS['pagetitle'] = wp_get_document_title();
    21 $GLOBALS['wporg_global_header_options'] = array(
    22     'in_wrapper' => '<a class="skip-link screen-reader-text" href="#main">' . esc_html( 'Skip to content', 'wporg-plugins' ) . '</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="#main">' . esc_html( 'Skip to content', 'wporg-plugins' ) . '</a>';
    2425require WPORGPATH . 'header.php';
    2526?>
Note: See TracChangeset for help on using the changeset viewer.