Changeset 9032 for trunk/wp-admin/upload.php
- Timestamp:
- 09/29/2008 10:06:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r9029 r9032 187 187 188 188 <div class="wrap"> 189 190 <h2><?php191 if ( isset($_GET['detached']) ) {192 _e('Unattached Media');193 } elseif ( is_singular() ) {194 printf( __('Comments on %s'), apply_filters("the_title", $post->post_title) );195 } else {196 $post_mime_type_label = _c('Media|manage media header');197 if ( isset($_GET['post_mime_type']) && in_array( $_GET['post_mime_type'], array_keys($post_mime_types) ) )198 $post_mime_type_label = $post_mime_types[$_GET['post_mime_type']][1];199 //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in edit.php200 //if ( $post_listing_pageable && !is_archive() && !is_search() )201 // $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_mime_type_label) : sprintf(__('Latest %s'), $post_mime_type_label);202 //else203 $h2_noun = $post_mime_type_label;204 // Use $_GET instead of is_ since they can override each other205 $h2_author = '';206 $_GET['author'] = isset( $_GET['author'] ) ? (int) $_GET['author'] : 0;207 if ( $_GET['author'] != 0 ) {208 if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion209 $h2_author = ' ' . __('by other authors');210 } else {211 $author_user = get_userdata( get_query_var( 'author' ) );212 $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));213 }214 }215 $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : '';216 $h2_cat = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in “%s”'), single_cat_title('', false) ) : '';217 $h2_tag = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with “%s”'), single_tag_title('', false) ) : '';218 $h2_month = isset($_GET['m']) && $_GET['m'] ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';219 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, 'media-upload.php?inline' );220 }221 ?></h2>222 189 223 190 <ul class="subsubsub">
Note: See TracChangeset
for help on using the changeset viewer.