Changeset 42107 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 11/02/2017 06:59:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r42046 r42107 1176 1176 $changeset_data = array(); 1177 1177 if ( $this->changeset_post_id() ) { 1178 /* 1179 * Don't re-import starter content into a changeset saved persistently. 1180 * This will need to be revisited in the future once theme switching 1181 * is allowed with drafted/scheduled changesets, since switching to 1182 * another theme could result in more starter content being applied. 1183 * However, when doing an explicit save it is currently possible for 1184 * nav menus and nav menu items specifically to lose their starter_content 1185 * flags, thus resulting in duplicates being created since they fail 1186 * to get re-used. See #40146. 1187 */ 1188 if ( 'auto-draft' !== get_post_status( $this->changeset_post_id() ) ) { 1189 return; 1190 } 1191 1178 1192 $changeset_data = $this->get_changeset_post_data( $this->changeset_post_id() ); 1179 1193 }
Note: See TracChangeset
for help on using the changeset viewer.