WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2014 11:32:52 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Restore the post type's view_item label for preview links that don't submit the changes.

fixes #28350.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r29170 r29695  
    500500                $wp_admin_bar->add_menu( array(
    501501                    'id' => 'preview',
    502                     'title' => __( 'Preview' ),
     502                    'title' => $post_type_object->labels->view_item,
    503503                    'href' => esc_url( $preview_link ),
    504504                    'meta' => array( 'target' => 'wp-preview-' . $post->ID ),
Note: See TracChangeset for help on using the changeset viewer.