Changeset 8993 for trunk/wp-admin/edit.php
- Timestamp:
- 09/26/2008 10:27:48 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r8992 r8993 68 68 } 69 69 70 $title = __('Posts'); 70 if ( empty($title) ) 71 $title = __('View All Posts'); 71 72 $parent_file = 'edit.php'; 72 73 wp_enqueue_script('admin-forms'); … … 124 125 </div></form> 125 126 126 <h2><?php127 if ( is_single() ) {128 printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));129 } else {130 $post_status_label = _c('Posts|manage posts header');131 if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) )132 $post_status_label = $post_stati[$_GET['post_status']][1];133 //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in upload.php134 //if ( $post_listing_pageable && !is_archive() && !is_search() )135 // $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label);136 //else137 $h2_noun = $post_status_label;138 // Use $_GET instead of is_ since they can override each other139 $h2_author = '';140 $_GET['author'] = isset($_GET['author']) ? (int) $_GET['author'] : 0;141 if ( $_GET['author'] != 0 ) {142 if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion143 $h2_author = ' ' . __('by other authors');144 } else {145 $author_user = get_userdata( get_query_var( 'author' ) );146 $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));147 }148 }149 $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : '';150 $h2_cat = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in “%s”'), single_cat_title('', false) ) : '';151 $h2_tag = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with “%s”'), single_tag_title('', false) ) : '';152 $h2_month = isset($_GET['m']) && $_GET['m'] ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';153 printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s (<a href="%7$s">Add New</a>)|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month, 'post-new.php' );154 }155 ?></h2>156 157 127 <form id="posts-filter" action="" method="get"> 158 128 <ul class="subsubsub">
Note: See TracChangeset
for help on using the changeset viewer.