Changeset 8646 for trunk/wp-admin/includes/post.php
- Timestamp:
- 08/14/2008 05:00:37 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r8600 r8646 491 491 if ( false === $q ) 492 492 $q = $_GET; 493 $q['m'] = (int) $q['m'];494 $q['cat'] = (int) $q['cat'];493 $q['m'] = isset($q['m']) ? (int) $q['m'] : 0; 494 $q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0; 495 495 $post_stati = array( // array( adj, noun ) 496 496 'publish' => array(__('Published'), __('Published posts'), __ngettext_noop('Published (%s)', 'Published (%s)')), … … 511 511 } 512 512 513 if ( 'pending' === $q['post_status'] ) {513 if ( isset($q['post_status']) && 'pending' === $q['post_status'] ) { 514 514 $order = 'ASC'; 515 515 $orderby = 'modified'; 516 } elseif ( 'draft' === $q['post_status'] ) {516 } elseif ( isset($q['post_status']) && 'draft' === $q['post_status'] ) { 517 517 $order = 'DESC'; 518 518 $orderby = 'modified';
Note: See TracChangeset
for help on using the changeset viewer.