diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index 8219b27f699..4f957428a5d 100644
a
|
b
|
function wp_list_post_revisions( $post_id = 0, $type = 'all' ) { |
1886 | 1886 | _deprecated_argument( __FUNCTION__, '3.6.0' ); |
1887 | 1887 | } |
1888 | 1888 | |
1889 | | if ( ! $revisions = wp_get_post_revisions( $post->ID ) ) { |
| 1889 | if ( ! $revisions = wp_get_post_revisions( $post->ID, array( 'fields' => 'ids' ) ) ) { |
1890 | 1890 | return; |
1891 | 1891 | } |
1892 | 1892 | |
1893 | 1893 | $rows = ''; |
1894 | 1894 | foreach ( $revisions as $revision ) { |
1895 | | if ( ! current_user_can( 'read_post', $revision->ID ) ) { |
| 1895 | if ( ! current_user_can( 'read_post', $revision ) ) { |
1896 | 1896 | continue; |
1897 | 1897 | } |
1898 | 1898 | |