Changeset 8646 for trunk/wp-admin/edit.php
- Timestamp:
- 08/14/2008 05:00:37 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r8484 r8646 57 57 if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) 58 58 $post_status_label = $post_stati[$_GET['post_status']][1]; 59 if ( $post_listing_pageable && !is_archive() && !is_search() )60 $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label);61 else59 //if ( $post_listing_pageable && !is_archive() && !is_search() ) //Unreachable code: $post_listing_pageable is undefined, Similar code in upload.php 60 // $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label); 61 //else 62 62 $h2_noun = $post_status_label; 63 63 // Use $_GET instead of is_ since they can override each other 64 64 $h2_author = ''; 65 $_GET['author'] = (int) $_GET['author'];65 $_GET['author'] = isset($_GET['author']) ? (int) $_GET['author'] : 0; 66 66 if ( $_GET['author'] != 0 ) { 67 67 if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion … … 94 94 if ( empty( $num_posts->$status ) ) 95 95 continue; 96 if ( $status == $_GET['post_status'] )96 if ( isset($_GET['post_status']) && $status == $_GET['post_status'] ) 97 97 $class = ' class="current"'; 98 98 … … 147 147 $month_count = count($arc_result); 148 148 149 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?> 149 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { 150 $m = isset($_GET['m']) ? (int)$_GET['m'] : 0; 151 ?> 150 152 <select name='m'> 151 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>153 <option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 152 154 <?php 153 155 foreach ($arc_result as $arc_row) { … … 156 158 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 157 159 158 if ( $arc_row->yyear . $arc_row->mmonth == $ _GET['m'])160 if ( $arc_row->yyear . $arc_row->mmonth == $m ) 159 161 $default = ' selected="selected"'; 160 162 else
Note: See TracChangeset
for help on using the changeset viewer.