Make WordPress Core


Ignore:
Timestamp:
01/20/2015 07:02:53 PM (12 years ago)
Author:
lancewillett
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php

    r28248 r31250  
    108108                        ?>
    109109                        <h1 class="widget-title <?php echo esc_attr( $format ); ?>">
    110                                 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( $format ) ); ?>"><?php echo $title; ?></a>
     110                                <a class="entry-format" href="<?php echo esc_url( get_post_format_link( $format ) ); ?>"><?php echo esc_html( $title ); ?></a>
    111111                        </h1>
    112112                        <ol>
    … …  
    262262                        <select id="<?php echo esc_attr( $this->get_field_id( 'format' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'format' ) ); ?>">
    263263                                <?php foreach ( $this->formats as $slug ) : ?>
    264                                 <option value="<?php echo esc_attr( $slug ); ?>"<?php selected( $format, $slug ); ?>><?php echo get_post_format_string( $slug ); ?></option>
     264                                <option value="<?php echo esc_attr( $slug ); ?>"<?php selected( $format, $slug ); ?>><?php echo esc_html( get_post_format_string( $slug ) ); ?></option>
    265265                                <?php endforeach; ?>
    266266                        </select>
Note: See TracChangeset for help on using the changeset viewer.