Changeset 8861 for trunk/wp-admin/includes/post.php
- Timestamp:
- 09/11/2008 05:50:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r8857 r8861 13 13 * @return object|bool WP_Error on failure, true on success. 14 14 */ 15 function _wp_translate_postdata( $update = false, &$post_data = null ) {15 function _wp_translate_postdata( $update = false, $post_data = null ) { 16 16 17 17 if ( empty($post_data) ) … … 111 111 } 112 112 113 return true;113 return $post_data; 114 114 } 115 115 … … 141 141 } 142 142 143 $ translated= _wp_translate_postdata( true, $post_data );144 if ( is_wp_error($ translated) )145 wp_die( $ translated->get_error_message() );143 $post_data = _wp_translate_postdata( true, $post_data ); 144 if ( is_wp_error($post_data) ) 145 wp_die( $post_data->get_error_message() ); 146 146 147 147 // Meta Stuff
Note: See TracChangeset
for help on using the changeset viewer.