diff --git a/wp-includes/post.php b/wp-includes/post.php
index 1dbf0c9867..069cc6e4e1 100644
--- a/wp-includes/post.php
+++ b/wp-includes/post.php
@@ -3159,7 +3159,7 @@ function wp_insert_post( $postarr, $wp_error = false ) {
 	}
 
 	// Don't allow contributors to set the post slug for pending review posts.
-	if ( 'pending' == $post_status && !current_user_can( 'publish_posts' ) ) {
+	if ( 'pending' == $post_status && !current_user_can( 'publish_posts', $post_ID ) ) {
 		$post_name = '';
 	}
 
