WordPress.org

Make WordPress Core

Ticket #32399: 32399.patch

File 32399.patch, 824 bytes (added by joedolson, 6 years ago)

Adds context to heading for view and page in post views.

  • wp-admin/edit.php

     
    280280?>
    281281<div class="wrap">
    282282<h2><?php
     283if ( ! empty( $_REQUEST['post_status'] ) ) {
     284        $status = get_post_status_object( $_REQUEST['post_status'] );
     285        echo esc_html( $status->label ) . ' ';
     286}
     287
    283288echo esc_html( $post_type_object->labels->name );
     289
     290if ( ! empty( $_REQUEST['paged'] ) ) {
     291        printf( ' <span class="subtitle current-page">' . __( '(page %d)' ) . '</span>', $pagenum );
     292}
     293
    284294if ( current_user_can( $post_type_object->cap->create_posts ) )
    285295        echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    286296if ( ! empty( $_REQUEST['s'] ) )