Changeset 22034
- Timestamp:
- 09/27/2012 03:39:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r21959 r22034 1259 1259 return new IXR_Error( 404, __( 'Invalid post ID.' ) ); 1260 1260 1261 if ( isset( $content_struct['if_not_modified_since'] ) ) { 1262 // If the post has been modified since the date provided, return an error. 1263 if ( mysql2date( 'U', $post['post_modified_gmt'] ) > $content_struct['if_not_modified_since']->getTimestamp() ) { 1264 return new IXR_Error( 409, __( 'There is a revision of this post that is more recent.' ) ); 1265 } 1266 } 1267 1261 1268 // convert the date field back to IXR form 1262 1269 $post['post_date'] = $this->_convert_date( $post['post_date'] ); … … 1476 1483 $query['order'] = $filter['order']; 1477 1484 } 1478 1485 1479 1486 if ( isset( $filter['s'] ) ) { 1480 1487 $query['s'] = $filter['s'];
Note: See TracChangeset
for help on using the changeset viewer.