Changeset 8646 for trunk/wp-admin/includes/template.php
- Timestamp:
- 08/14/2008 05:00:37 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r8600 r8646 344 344 $posts_columns = array(); 345 345 $posts_columns['cb'] = '<input type="checkbox" />'; 346 if ( 'draft' === $_GET['post_status'] )346 if ( isset($_GET['post_status']) && 'draft' === $_GET['post_status'] ) 347 347 $posts_columns['modified'] = __('Modified'); 348 elseif ( 'pending' === $_GET['post_status'] )348 elseif ( isset($_GET['post_status']) && 'pending' === $_GET['post_status'] ) 349 349 $posts_columns['modified'] = __('Submitted'); 350 350 else … … 354 354 $posts_columns['categories'] = __('Categories'); 355 355 $posts_columns['tags'] = __('Tags'); 356 if ( !i n_array($_GET['post_status'], array('pending', 'draft', 'future')) )356 if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) ) 357 357 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>'; 358 358 $posts_columns['status'] = __('Status'); … … 1093 1093 function wp_dropdown_roles( $default = false ) { 1094 1094 global $wp_roles; 1095 $p = ''; 1095 1096 $r = ''; 1096 1097 foreach( $wp_roles->role_names as $role => $name ) {
Note: See TracChangeset
for help on using the changeset viewer.