Make WordPress Core


Ignore:
Timestamp:
01/20/2010 11:01:09 PM (15 years ago)
Author:
ryan
Message:

Clear some warnings. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-sites.php

    r12781 r12782  
    1515    wp_die( __('You do not have permission to access this page.') );
    1616
    17 $id = intval( $_GET['id'] );
     17$id = isset($_GET['id']) ? intval( $_GET['id'] ) : 0;
    1818$protocol = is_ssl() ? 'https://' : 'http://';
    1919
    20 if ( $_GET['updated'] == 'true' ) {
     20if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
    2121    ?>
    2222    <div id="message" class="updated fade"><p>
     
    7171}
    7272
    73 switch ( $_GET['action'] ) {
     73$action = isset($_GET['action']) ? $_GET['action'] : 'list';
     74
     75switch ( $action ) {
    7476    // Edit blog
    7577    case "editblog":
     
    310312
    311313    // List blogs
     314    case 'list':
    312315    default:
    313316        $apage = ( isset($_GET['apage'] ) && intval( $_GET['apage'] ) ) ? absint( $_GET['apage'] ) : 1;
Note: See TracChangeset for help on using the changeset viewer.