WordPress.org

Make WordPress Core

Changeset 23556


Ignore:
Timestamp:
03/01/2013 04:37:24 PM (7 years ago)
Author:
ryan
Message:

There is no need to strip the output of get_site_option().

see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/settings.php

    r23554 r23556  
    6262        if ( ! isset($_POST[$option_name]) )
    6363            continue;
    64         $value = stripslashes_deep( $_POST[$option_name] );
     64        $value = wp_unslash( $_POST[$option_name] );
    6565        update_site_option( $option_name, $value );
    6666    }
     
    182182                <td>
    183183                    <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text">
    184 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea>
     184<?php echo esc_textarea( get_site_option( 'welcome_email' ) ) ?></textarea>
    185185                    <br />
    186186                    <?php _e( 'The welcome email sent to new site owners.' ) ?>
     
    191191                <td>
    192192                    <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text">
    193 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea>
     193<?php echo esc_textarea( get_site_option( 'welcome_user_email' ) ) ?></textarea>
    194194                    <br />
    195195                    <?php _e( 'The welcome email sent to new users.' ) ?>
     
    200200                <td>
    201201                    <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text">
    202 <?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea>
     202<?php echo esc_textarea( get_site_option( 'first_post' ) ) ?></textarea>
    203203                    <br />
    204204                    <?php _e( 'The first post on a new site.' ) ?>
     
    209209                <td>
    210210                    <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text">
    211 <?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea>
     211<?php echo esc_textarea( get_site_option( 'first_page' ) ) ?></textarea>
    212212                    <br />
    213213                    <?php _e( 'The first page on a new site.' ) ?>
     
    218218                <td>
    219219                    <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text">
    220 <?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea>
     220<?php echo esc_textarea( get_site_option( 'first_comment' ) ) ?></textarea>
    221221                    <br />
    222222                    <?php _e( 'The first comment on a new site.' ) ?>
Note: See TracChangeset for help on using the changeset viewer.