Changeset 39924 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 01/19/2017 12:00:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r39692 r39924 998 998 ); 999 999 1000 /* 1001 * Obtain all post types referenced in starter content to use in query. 1002 * This is needed because 'any' will not account for post types not yet registered. 1003 */ 1004 $post_types = array_filter( array_merge( array( 'attachment' ), wp_list_pluck( $posts, 'post_type' ) ) ); 1005 1000 1006 // Re-use auto-draft starter content posts referenced in the current customized state. 1001 1007 $existing_starter_content_posts = array(); … … 1004 1010 'post__in' => $starter_content_auto_draft_post_ids, 1005 1011 'post_status' => 'auto-draft', 1006 'post_type' => 'any',1012 'post_type' => $post_types, 1007 1013 'posts_per_page' => -1, 1008 1014 ) );
Note: See TracChangeset
for help on using the changeset viewer.