Make WordPress Core

Changeset 37125


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

Multisite: Improve escaping in network settings.

Merge of [37124] to the 4.4 branch.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

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

    r35570 r37125  
    259259                <th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>
    260260                <td>
    261                     <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') ?>" />
     261                    <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') ); ?>" />
    262262                    <p class="description" id="first-comment-author-desc">
    263263                        <?php _e( 'The author of the first comment on a new site.' ) ?>
Note: See TracChangeset for help on using the changeset viewer.