Make WordPress Core


Ignore:
Timestamp:
08/28/2012 05:16:18 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: use sidebar ID string value for sidebar checks instead of hard-coded integer, props nacin. See #21685.

File:
1 edited

Legend:

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

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