Changeset 27057 for trunk/src/wp-includes/revision.php
- Timestamp:
- 01/29/2014 06:45:54 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/revision.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r26995 r27057 257 257 */ 258 258 function wp_get_post_revision(&$post, $output = OBJECT, $filter = 'raw') { 259 $null = null;260 259 if ( !$revision = get_post( $post, OBJECT, $filter ) ) 261 260 return $revision; 262 261 if ( 'revision' !== $revision->post_type ) 263 return $null;262 return null; 264 263 265 264 if ( $output == OBJECT ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)