mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@16431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -121,7 +121,7 @@ if (isset($_GET['updated'])) {
|
||||
<?php $limited_email_domains = get_site_option( 'limited_email_domains' );
|
||||
$limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?>
|
||||
<textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5">
|
||||
<?php echo wp_htmledit_pre( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
|
||||
<?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?>
|
||||
</td>
|
||||
@@ -131,7 +131,7 @@ if (isset($_GET['updated'])) {
|
||||
<th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th>
|
||||
<td>
|
||||
<textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5">
|
||||
<?php echo wp_htmledit_pre( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea>
|
||||
<?php echo esc_textarea( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?>
|
||||
</td>
|
||||
@@ -145,7 +145,7 @@ if (isset($_GET['updated'])) {
|
||||
<th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>
|
||||
<td>
|
||||
<textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text">
|
||||
<?php echo wp_htmledit_pre( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea>
|
||||
<?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'The welcome email sent to new site owners.' ) ?>
|
||||
</td>
|
||||
@@ -154,7 +154,7 @@ if (isset($_GET['updated'])) {
|
||||
<th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>
|
||||
<td>
|
||||
<textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text">
|
||||
<?php echo wp_htmledit_pre( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea>
|
||||
<?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'The welcome email sent to new users.' ) ?>
|
||||
</td>
|
||||
@@ -163,7 +163,7 @@ if (isset($_GET['updated'])) {
|
||||
<th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>
|
||||
<td>
|
||||
<textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text">
|
||||
<?php echo wp_htmledit_pre( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea>
|
||||
<?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'The first post on a new site.' ) ?>
|
||||
</td>
|
||||
@@ -172,7 +172,7 @@ if (isset($_GET['updated'])) {
|
||||
<th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>
|
||||
<td>
|
||||
<textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text">
|
||||
<?php echo wp_htmledit_pre( stripslashes( get_site_option('first_page') ) ) ?></textarea>
|
||||
<?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'The first page on a new site.' ) ?>
|
||||
</td>
|
||||
@@ -181,7 +181,7 @@ if (isset($_GET['updated'])) {
|
||||
<th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>
|
||||
<td>
|
||||
<textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text">
|
||||
<?php echo wp_htmledit_pre( stripslashes( get_site_option('first_comment') ) ) ?></textarea>
|
||||
<?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea>
|
||||
<br />
|
||||
<?php _e( 'The first comment on a new site.' ) ?>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user