Use 'Posts', 'Pages', and corresponding custom post type names as the edit.php title. fixes #12968, fixes #11274.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-14 01:45:30 +00:00
parent 3f796315da
commit 6d590a567b

View File

@ -154,6 +154,7 @@ if ( $post_type_object->hierarchical )
else else
$num_pages = $wp_query->max_num_pages; $num_pages = $wp_query->max_num_pages;
$title = $post_type_object->labels->name;
require_once('./admin-header.php'); require_once('./admin-header.php');
if ( empty($_GET['mode']) ) if ( empty($_GET['mode']) )
@ -163,7 +164,7 @@ else
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
<h2><?php echo esc_html( $post_type_object->labels->edit_item ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php <h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
if ( isset($_GET['s']) && $_GET['s'] ) if ( isset($_GET['s']) && $_GET['s'] )
printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?> printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
</h2> </h2>