[wp-trac] [WordPress Trac] #39610: Customize: Custom post types cannot be used in starter content

WordPress Trac noreply at wordpress.org
Tue Jan 17 05:15:34 UTC 2017


#39610: Customize: Custom post types cannot be used in starter content
-------------------------------------+--------------------
 Reporter:  westonruter              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.7.2
Component:  Customize                |     Version:  4.7
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------

Comment (by westonruter):

 The problem is that `\WP_Customize_Nav_Menus::insert_auto_draft_post()`
 was doing a `post_type_exists()` check. It's clear that for the purposes
 of this API method there needn't be a post type existence check,
 especially in the case of importing starter content. Note that
 `post_type_exists()` check is still present in
 `WP_Customize_Nav_Menus::ajax_insert_auto_draft_post()` and so the check
 was actually redundant.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39610#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list