Changeset 39278 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/17/2016 03:52:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r39188 r39278 3124 3124 if ( ! $valid_date ) { 3125 3125 if ( $wp_error ) { 3126 return new WP_Error( 'invalid_date', __( ' Whoops, the provided date is invalid.' ) );3126 return new WP_Error( 'invalid_date', __( 'Invalid date.' ) ); 3127 3127 } else { 3128 3128 return 0; … … 3404 3404 if ( 'default' != $postarr['page_template'] && ! isset( $page_templates[ $postarr['page_template'] ] ) ) { 3405 3405 if ( $wp_error ) { 3406 return new WP_Error( 'invalid_page_template', __('The page template is invalid.'));3406 return new WP_Error( 'invalid_page_template', __( 'Invalid page template.' ) ); 3407 3407 } 3408 3408 update_post_meta( $post_ID, '_wp_page_template', 'default' );
Note: See TracChangeset
for help on using the changeset viewer.