Changeset 48422 for trunk/src/wp-admin/includes/meta-boxes.php
- Timestamp:
- 07/10/2020 03:12:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r48352 r48422 1438 1438 $publish_callback_args = array( '__back_compat_meta_box' => true ); 1439 1439 if ( post_type_supports( $post_type, 'revisions' ) && 'auto-draft' !== $post->post_status ) { 1440 $revisions = wp_get_post_revisions( $post->ID );1440 $revisions = wp_get_post_revisions( $post->ID, array( 'fields' => 'ids' ) ); 1441 1441 1442 1442 // We should aim to show the revisions meta box only when there are revisions. … … 1445 1445 $publish_callback_args = array( 1446 1446 'revisions_count' => count( $revisions ), 1447 'revision_id' => key( $revisions ),1447 'revision_id' => array_shift( $revisions ), 1448 1448 '__back_compat_meta_box' => true, 1449 1449 );
Note: See TracChangeset
for help on using the changeset viewer.