Make WordPress Core

Changeset 21620


Ignore:
Timestamp:
08/25/2012 05:32:06 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Twelve: consistently call sidebar areas with just the ID value, props obenland. See #21685.

Location:
trunk/wp-content/themes/twentytwelve
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/functions.php

    r21618 r21620  
    373373    $background_color = get_background_color();
    374374
    375     if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'full-width-page.php' ) )
     375    if ( ! is_active_sidebar( 1 ) || is_page_template( 'full-width-page.php' ) )
    376376        $classes[] = 'full-width';
    377377
     
    395395 */
    396396function twentytwelve_content_width() {
    397     if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) {
     397    if ( is_page_template( 'full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) {
    398398        global $content_width;
    399399        $content_width = 960;
  • trunk/wp-content/themes/twentytwelve/sidebar-home.php

    r21618 r21620  
    2424    <?php if ( is_active_sidebar( 2 ) ) : ?>
    2525    <div class="first home-widgets">
    26         <?php dynamic_sidebar( 'sidebar-2' ); ?>
     26        <?php dynamic_sidebar( 2 ); ?>
    2727    </div><!-- .first -->
    2828    <?php endif; ?>
     
    3030    <?php if ( is_active_sidebar( 3 ) ) : ?>
    3131    <div class="second home-widgets">
    32         <?php dynamic_sidebar( 'sidebar-3' ); ?>
     32        <?php dynamic_sidebar( 3 ); ?>
    3333    </div><!-- .second -->
    3434    <?php endif; ?>
  • trunk/wp-content/themes/twentytwelve/sidebar.php

    r21618 r21620  
    1111?>
    1212
    13     <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
     13    <?php if ( is_active_sidebar( 1 ) ) : ?>
    1414        <div id="secondary" class="widget-area" role="complementary">
    15             <?php dynamic_sidebar( 'sidebar-1' ); ?>
     15            <?php dynamic_sidebar( 1 ); ?>
    1616        </div><!-- #secondary -->
    1717    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.