Make WordPress Core


Ignore:
Timestamp:
01/10/2017 02:40:00 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Use an existing string for "Invalid post type" error message.

Props ramiy.
Fixes #39171.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r37914 r39756  
    5353    $post = get_post( $id );
    5454    if ( 'attachment' != $post->post_type )
    55         wp_die( __( 'Unknown post type.' ) );
     55        wp_die( __( 'Invalid post type.' ) );
    5656    if ( ! current_user_can( 'edit_post', $id ) )
    5757        wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
Note: See TracChangeset for help on using the changeset viewer.