Changeset 31930 for trunk/src/wp-admin/includes/class-wp-press-this.php
- Timestamp:
- 03/30/2015 02:38:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31925 r31930 137 137 $updated = wp_update_post( $post, true ); 138 138 139 if ( is_wp_error( $updated ) || intval( $updated ) < 1) {140 wp_send_json_error( array( 'errorMessage' => __( 'Error while saving the post. Please try again later.') ) );139 if ( is_wp_error( $updated ) ) { 140 wp_send_json_error( array( 'errorMessage' => $updated->get_error_message() ) ); 141 141 } else { 142 142 if ( isset( $post['post_format'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.