WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/10/2017 02:40:00 AM (3 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-includes/class-wp-customize-nav-menus.php

    r39558 r39756  
    788788    public function insert_auto_draft_post( $postarr ) {
    789789        if ( ! isset( $postarr['post_type'] ) || ! post_type_exists( $postarr['post_type'] )  ) {
    790             return new WP_Error( 'unknown_post_type', __( 'Unknown post type' ) );
     790            return new WP_Error( 'unknown_post_type', __( 'Invalid post type.' ) );
    791791        }
    792792        if ( empty( $postarr['post_title'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.