Make WordPress Core


Ignore:
Timestamp:
08/08/2008 05:05:10 PM (17 years ago)
Author:
westi
Message:

Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r8577 r8589  
    538538    if ( false === $q )
    539539        $q = $_GET;
    540     $q['m']   = (int) $q['m'];
    541     $q['cat'] = (int) $q['cat'];
     540
     541    $q['m']   = isset( $q['m'] ) ? (int) $q['m'] : 0;
     542    $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0;
    542543    $q['post_type'] = 'attachment';
    543544    $q['post_status'] = 'any';
Note: See TracChangeset for help on using the changeset viewer.