Changeset 31188 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 01/16/2015 01:05:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r31149 r31188 1118 1118 1119 1119 // convert the date field back to IXR form 1120 if ( isset( $content_struct['post_date'] ) && ! is_a( $content_struct['post_date'], 'IXR_Date') ) {1120 if ( isset( $content_struct['post_date'] ) && ! ( $content_struct['post_date'] instanceof IXR_Date ) ) { 1121 1121 $content_struct['post_date'] = $this->_convert_date( $content_struct['post_date'] ); 1122 1122 } … … 1124 1124 // ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct, 1125 1125 // since _insert_post will ignore the non-GMT date if the GMT date is set 1126 if ( isset( $content_struct['post_date_gmt'] ) && ! is_a( $content_struct['post_date_gmt'], 'IXR_Date') ) {1126 if ( isset( $content_struct['post_date_gmt'] ) && ! ( $content_struct['post_date_gmt'] instanceof IXR_Date ) ) { 1127 1127 if ( $content_struct['post_date_gmt'] == '0000-00-00 00:00:00' || isset( $content_struct['post_date'] ) ) { 1128 1128 unset( $content_struct['post_date_gmt'] );
Note: See TracChangeset
for help on using the changeset viewer.