Make WordPress Core

Ticket #35097: 35097.patch

File 35097.patch, 1.2 KB (added by sebastian.pisula, 9 years ago)
  • wp-admin/edit.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    296296$bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
    297297$bulk_counts = array_filter( $bulk_counts );
    298298
     299/**
     300 * Filter the title in edit page
     301 *
     302 * By default, custom post types use the messages for the 'post' post type.
     303 *
     304 * @since 4.5.0
     305 *
     306 * @param string $post_type_title Filter post type title
     307 */
     308$edit_post_type_title = apply_filters( 'edit_post_type_title', $post_type_object->labels->name );
     309
    299310require_once( ABSPATH . 'wp-admin/admin-header.php' );
    300311?>
    301312<div class="wrap">
    302313<h1><?php
    303 echo esc_html( $post_type_object->labels->name );
     314echo esc_html( $edit_post_type_title );
    304315if ( current_user_can( $post_type_object->cap->create_posts ) )
    305316        echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    306317if ( ! empty( $_REQUEST['s'] ) )