Ticket #19711: 19711.patch
File 19711.patch, 2.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/edit.php
294 294 <div class="wrap"> 295 295 <h1><?php 296 296 echo esc_html( $post_type_object->labels->name ); 297 if ( current_user_can( $post_type_object->cap->create_posts ) ) 297 if ( current_user_can( $post_type_object->cap->create_posts ) ) { 298 298 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 299 if ( ! empty( $_REQUEST['s'] ) ) 299 } 300 if ( ! empty( $_REQUEST['s'] ) ) { 300 301 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 302 } 303 if ( !empty( $_REQUEST['m'] ) || !empty( $_REQUEST['cat']) || !empty( $_REQUEST['author'] ) ) { 304 $post_filters = array(); 305 if ( !empty( $_REQUEST['cat'] ) ) { 306 $post_filters[] = single_cat_title( '', false ); 307 } 308 if ( !empty( $_REQUEST['author'] ) ) { 309 $post_filters[] = get_user_meta( $_REQUEST['author'], 'nickname', true ); 310 } 311 if ( !empty( $_REQUEST['m'] ) ) { 312 /* translators: 1: month name, 2: 4-digit year */ 313 $post_filters[] = sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( substr( $_REQUEST['m'], 4, 2 ) ), substr( $_REQUEST['m'], 0, 4 ) ); 314 } 315 printf( ' <span class="subtitle">' . __('Showing posts from: %s') . '</span>', implode(', ', $post_filters ) ); 316 } 301 317 ?></h1> 302 318 303 319 <?php -
src/wp-admin/includes/class-wp-posts-list-table.php
453 453 wp_dropdown_categories( $dropdown_options ); 454 454 } 455 455 456 $this->authors_dropdown( $this->screen->post_type ); 457 456 458 /** 457 459 * Fires before the Filter button on the Posts and Pages list tables. 458 460 *