Use 'Posts', 'Pages', and corresponding custom post type names as the edit.php title. fixes #12968, fixes #11274.
git-svn-id: https://develop.svn.wordpress.org/trunk@14616 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ae2148a866
commit
df111e4021
@ -154,6 +154,7 @@ if ( $post_type_object->hierarchical )
|
||||
else
|
||||
$num_pages = $wp_query->max_num_pages;
|
||||
|
||||
$title = $post_type_object->labels->name;
|
||||
require_once('./admin-header.php');
|
||||
|
||||
if ( empty($_GET['mode']) )
|
||||
@ -163,7 +164,7 @@ else
|
||||
|
||||
<div class="wrap">
|
||||
<?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'] )
|
||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
|
||||
</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user