[wp-trac] [WordPress Trac] #34923: Introduce basic content authorship in the Customizer

WordPress Trac noreply at wordpress.org
Wed May 25 08:47:58 UTC 2016


#34923: Introduce basic content authorship in the Customizer
-------------------------------------+-------------------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  4.6
Component:  Customize                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch has-patch    |     Focuses:  ui, accessibility,
  ux-feedback ui-feedback needs-     |  javascript
  testing                            |
-------------------------------------+-------------------------------------

Comment (by westonruter):

 In [attachment:34923.2.customize-posts.diff] I removed the ability to add
 new nav menu items for taxonomy terms; this is due to there not being any
 facility to create “auto-draft” taxonomy terms that will get garbage-
 collected if they don't get promoted. We can revisit that later I think.

 But more importantly, this patch adds integration with the the Customize
 Posts plugin so that when you add a nav menu item for a post, page, or
 other CPT, it will actually create an auto-draft and link the nav menu
 item to it. You are able to navigate to the newly-created auto-draft post
 that is linked to in the nav menu.

 This depends on some Customize Posts code that is currently in a pull
 request pending merge. @valendesigns has been the major contributor here.
 The key JS API from Customize Posts is the
 `wp.customize.Posts.insertAutoDraftPost()` function. Customize Posts also
 provides the PHP filters for ensuring that the auto-draft post will be
 accessible in the preview, and also so that the auto-draft will be
 transitioned to a publish status when the Customizer state is saved.
 (Customize Posts also allows you to edit the actual auto-draft post/page
 itself, including the title, content, and other fields, but this post
 editing functionality is out of scope for this ticket.)

 PR from Customize Posts: https://github.com/xwp/wp-customize-
 posts/pull/134

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


More information about the wp-trac mailing list