Ticket #39032: 39032.2.diff
| File 39032.2.diff, 456 bytes (added by , 9 years ago) |
|---|
-
src/wp-includes/theme.php
1786 1786 $r = wp_update_post( wp_slash( $post_data ), true ); 1787 1787 } else { 1788 1788 $r = wp_insert_post( wp_slash( $post_data ), true ); 1789 wp_save_post_revision( $r ); // Trigger creation of a revision. See #30854 1789 1790 } 1790 1791 1791 1792 if ( $r instanceof WP_Error ) {