Changeset 48438 for trunk/src/wp-includes/revision.php
- Timestamp:
- 07/11/2020 09:13:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r48422 r48438 222 222 * Retrieve the autosaved data of the specified post. 223 223 * 224 * Returns a n object containing the information that was autosaved for the225 * specified post. If the optional $user_id is passed, returns the autosave for that user226 * otherwisereturns the latest autosave.224 * Returns a post object with the information that was autosaved for the specified post. 225 * If the optional $user_id is passed, returns the autosave for that user, otherwise 226 * returns the latest autosave. 227 227 * 228 228 * @since 2.6.0 … … 238 238 $user_id_query = ( 0 !== $user_id ) ? "AND post_author = $user_id" : null; 239 239 240 // Construct the autosave query 240 // Construct the autosave query. 241 241 $autosave_query = " 242 242 SELECT * … … 261 261 } 262 262 263 return $autosave[0];263 return get_post( $autosave[0] ); 264 264 } 265 265
Note: See TracChangeset
for help on using the changeset viewer.