Make WordPress Core

Changeset 14616


Ignore:
Timestamp:
05/14/2010 01:45:30 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r14588 r14616  
    155155    $num_pages = $wp_query->max_num_pages;
    156156
     157$title = $post_type_object->labels->name;
    157158require_once('./admin-header.php');
    158159
     
    164165<div class="wrap">
    165166<?php screen_icon(); ?>
    166 <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
     167<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
    167168if ( isset($_GET['s']) && $_GET['s'] )
    168169    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
Note: See TracChangeset for help on using the changeset viewer.