mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
3f796315da
commit
6d590a567b
@ -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