Make WordPress Core


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.

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.