Ensure that we apply the absolute integer casting result to the variable we are going to use. See #16119
git-svn-id: https://develop.svn.wordpress.org/trunk@17230 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0af96a02ed
commit
e82c3fd2d5
@ -203,7 +203,7 @@ if ( isset( $_GET['enabled'] ) ) {
|
|||||||
$_GET['disabled'] = absint( $_GET['disabled'] );
|
$_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>';
|
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'] ) ) {
|
} 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>';
|
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'] ) {
|
} elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) {
|
||||||
echo '<div id="message" class="error"><p>' . __( 'No theme selected.' ) . '</p></div>';
|
echo '<div id="message" class="error"><p>' . __( 'No theme selected.' ) . '</p></div>';
|
||||||
|
Loading…
Reference in New Issue
Block a user