WordPress.org

Make WordPress Core

Changeset 17230


Ignore:
Timestamp:
01/06/11 08:51:45 (3 years ago)
Author:
westi
Message:

Ensure that we apply the absolute integer casting result to the variable we are going to use. See #16119

File:
1 edited

Legend:

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

    r17138 r17230  
    204204    echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme disabled.', '%s themes disabled.', $_GET['disabled'] ), number_format_i18n( $_GET['disabled'] ) ) . '</p></div>'; 
    205205} elseif ( isset( $_GET['deleted'] ) ) { 
    206     $_GET['disabled'] = absint( $_GET['deleted'] ); 
     206    $_GET['deleted'] = absint( $_GET['deleted'] ); 
    207207    echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme deleted.', '%s themes deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) ) . '</p></div>'; 
    208208} elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { 
Note: See TracChangeset for help on using the changeset viewer.