WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2015 12:41:36 AM (5 years ago)
Author:
lancewillett
Message:

Twenty Eleven: fix escaping and minor code style issues. See #29127.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r29903 r31265  
    219219
    220220    if ( is_rtl() )
    221         $default_theme_options['theme_layout'] = 'sidebar-content';
     221        $default_theme_options['theme_layout'] = 'sidebar-content';
    222222
    223223    /**
     
    278278        <span>
    279279            <img src="<?php echo esc_url( $scheme['thumbnail'] ); ?>" width="136" height="122" alt="" />
    280             <?php echo $scheme['label']; ?>
     280            <?php echo esc_html( $scheme['label'] ); ?>
    281281        </span>
    282282    </label>
     
    317317            <span>
    318318                <img src="<?php echo esc_url( $layout['thumbnail'] ); ?>" width="136" height="122" alt="" />
    319                 <?php echo $layout['label']; ?>
     319                <?php echo esc_html( $layout['label'] ); ?>
    320320            </span>
    321321        </label>
     
    563563    $choices = array();
    564564    foreach ( $layouts as $layout ) {
    565         $choices[$layout['value']] = $layout['label'];
     565        $choices[ $layout['value'] ] = $layout['label'];
    566566    }
    567567
Note: See TracChangeset for help on using the changeset viewer.