Changeset 39479 for branches/4.7/src/wp-includes/theme.php
- Timestamp:
- 12/04/2016 05:31:28 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/theme.php
r39350 r39479 1787 1787 } else { 1788 1788 $r = wp_insert_post( wp_slash( $post_data ), true ); 1789 } 1790 1791 if ( $r instanceof WP_Error ) { 1789 1790 // Trigger creation of a revision. This should be removed once #30854 is resolved. 1791 if ( ! is_wp_error( $r ) && 0 === count( wp_get_post_revisions( $r ) ) ) { 1792 wp_save_post_revision( $r ); 1793 } 1794 } 1795 1796 if ( is_wp_error( $r ) ) { 1792 1797 return $r; 1793 1798 }
Note: See TracChangeset
for help on using the changeset viewer.