Make WordPress Core

Changeset 37126


Ignore:
Timestamp:
03/30/2016 04:01:19 PM (9 years ago)
Author:
jeremyfelt
Message:

Multisite: Improve escaping in network settings.

Merge of [37124] to the 4.3 branch.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-admin/network/settings.php

    r32974 r37126  
    274274                <th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>
    275275                <td>
    276                     <input type="text" size="40" name="first_comment_author" id="first_comment_author" aria-describedby="first-comment-author-desc" value="<?php echo get_site_option('first_comment_author') ?>" />
     276                    <input type="text" size="40" name="first_comment_author" id="first_comment_author" aria-describedby="first-comment-author-desc" value="<?php echo esc_attr( get_site_option('first_comment_author') ); ?>" />
    277277                    <p class="description" id="first-comment-author-desc">
    278278                        <?php _e( 'The author of the first comment on a new site.' ) ?>
Note: See TracChangeset for help on using the changeset viewer.