mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fix typo in wp_save_revision(). props Andy. see #6775
git-svn-id: http://svn.automattic.com/wordpress/trunk@7817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca6bd9ebd5
commit
60aab00ba1
@ -3060,7 +3060,7 @@ function wp_save_revision( $post_id ) {
|
||||
|
||||
// TODO: open this up for pages also
|
||||
if ( 'post' != $post->post_type )
|
||||
retun;
|
||||
return;
|
||||
|
||||
return _wp_put_revision( $post );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user