Typo fix. Props ocean90, guyn. fixes #17234
git-svn-id: http://svn.automattic.com/wordpress/trunk@17698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c54adb08df
commit
ed6d0bbd37
|
@ -2455,7 +2455,7 @@ function wp_insert_post($postarr, $wp_error = false) {
|
|||
$post_before = get_post($post_ID);
|
||||
}
|
||||
|
||||
// Don't allow contributors to set to set the post slug for pending review posts
|
||||
// Don't allow contributors to set the post slug for pending review posts
|
||||
if ( 'pending' == $post_status && !current_user_can( 'publish_posts' ) )
|
||||
$post_name = '';
|
||||
|
||||
|
|
Loading…
Reference in New Issue