There is no need to strip the output of get_site_option().
see #21767 git-svn-id: https://develop.svn.wordpress.org/trunk@23556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
85782c3e39
commit
206318aeca
|
@ -61,7 +61,7 @@ if ( $_POST ) {
|
||||||
foreach ( $options as $option_name ) {
|
foreach ( $options as $option_name ) {
|
||||||
if ( ! isset($_POST[$option_name]) )
|
if ( ! isset($_POST[$option_name]) )
|
||||||
continue;
|
continue;
|
||||||
$value = stripslashes_deep( $_POST[$option_name] );
|
$value = wp_unslash( $_POST[$option_name] );
|
||||||
update_site_option( $option_name, $value );
|
update_site_option( $option_name, $value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
<th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>
|
<th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text">
|
<textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text">
|
||||||
<?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea>
|
<?php echo esc_textarea( get_site_option( 'welcome_email' ) ) ?></textarea>
|
||||||
<br />
|
<br />
|
||||||
<?php _e( 'The welcome email sent to new site owners.' ) ?>
|
<?php _e( 'The welcome email sent to new site owners.' ) ?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -190,7 +190,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
<th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>
|
<th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text">
|
<textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text">
|
||||||
<?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea>
|
<?php echo esc_textarea( get_site_option( 'welcome_user_email' ) ) ?></textarea>
|
||||||
<br />
|
<br />
|
||||||
<?php _e( 'The welcome email sent to new users.' ) ?>
|
<?php _e( 'The welcome email sent to new users.' ) ?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -199,7 +199,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
<th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>
|
<th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text">
|
<textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text">
|
||||||
<?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea>
|
<?php echo esc_textarea( get_site_option( 'first_post' ) ) ?></textarea>
|
||||||
<br />
|
<br />
|
||||||
<?php _e( 'The first post on a new site.' ) ?>
|
<?php _e( 'The first post on a new site.' ) ?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -208,7 +208,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
<th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>
|
<th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text">
|
<textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text">
|
||||||
<?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea>
|
<?php echo esc_textarea( get_site_option( 'first_page' ) ) ?></textarea>
|
||||||
<br />
|
<br />
|
||||||
<?php _e( 'The first page on a new site.' ) ?>
|
<?php _e( 'The first page on a new site.' ) ?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -217,7 +217,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
<th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>
|
<th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text">
|
<textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text">
|
||||||
<?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea>
|
<?php echo esc_textarea( get_site_option( 'first_comment' ) ) ?></textarea>
|
||||||
<br />
|
<br />
|
||||||
<?php _e( 'The first comment on a new site.' ) ?>
|
<?php _e( 'The first comment on a new site.' ) ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue