mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Ensure that we apply the absolute integer casting result to the variable we are going to use. See #16119
git-svn-id: http://svn.automattic.com/wordpress/trunk@17230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
33b875fef8
commit
c0828c77d0
@ -203,7 +203,7 @@ if ( isset( $_GET['enabled'] ) ) {
|
||||
$_GET['disabled'] = absint( $_GET['disabled'] );
|
||||
echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme disabled.', '%s themes disabled.', $_GET['disabled'] ), number_format_i18n( $_GET['disabled'] ) ) . '</p></div>';
|
||||
} elseif ( isset( $_GET['deleted'] ) ) {
|
||||
$_GET['disabled'] = absint( $_GET['deleted'] );
|
||||
$_GET['deleted'] = absint( $_GET['deleted'] );
|
||||
echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme deleted.', '%s themes deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) ) . '</p></div>';
|
||||
} elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) {
|
||||
echo '<div id="message" class="error"><p>' . __( 'No theme selected.' ) . '</p></div>';
|
||||
|
Loading…
Reference in New Issue
Block a user