WordPress.org

Making WordPress.org

Changeset 8247


Ignore:
Timestamp:
02/14/2019 05:11:25 AM (6 months ago)
Author:
tellyworth
Message:

Showcase 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-showcase/header.php

    r8237 r8247  
    11<?php
    22$GLOBALS['pagetitle'] = wp_get_document_title();
    3 $GLOBALS['wporg_global_header_options'] = array(
    4     'in_wrapper' => '<a class="skip-link screen-reader-text" href="#pagebody">' . esc_html( 'Skip to content', 'wporg-showcase' ) . '</a>',
    5 );
     3global $wporg_global_header_options;
     4if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     5    $wporg_global_header_options['in_wrapper'] = '';
     6$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#pagebody">' . esc_html( 'Skip to content', 'wporg-showcase' ) . '</a>';
    67
    78$prefix = is_ssl() ? 'https://' : 'http://s.';
Note: See TracChangeset for help on using the changeset viewer.