-
Notifications
You must be signed in to change notification settings - Fork 37
Introduce Select2 to jump to the desired post in a post type panel #196
Introduce Select2 to jump to the desired post in a post type panel #196
Conversation
…-dev-lib#192 from branch bugfix/path-excludes-pattern xwp/wp-dev-lib@1764efd...449182d
…r selective refresh to respond Fixes #43.
…ic into new method; change add-new-button element into an actions element
* Use same get_settings() logic in auto-draft insertion request. * Let api.Posts.addPostSection() take single settingId param instead of postType and postId. * Introduce api.Posts.addPostSettings() * Move addPostSection out of addSettings call. * Introduce api.Posts.addPostSettings() * Introduce api.Posts.parseSettingId(). * Use api.Posts.getPreviewUrl() instead of url passed back from auto-draft inerstion.
f01f39a
to
561cf1d
Compare
* Use customize_refresh_nonces instead of once-exported nonce. * Move panel actions template to panel class.
…nto feature/issue-146-list-all-section-posts
@danielbachhuber take a look at this: Upon selection, the section is loaded, focused, and the post is loaded into the preview. |
Would this apply just for the content that's out of view, or does it become the new default UI for accessing any content? My preference would be the former, because I generally agree with the UX maxim that you shouldn't hide things from users. |
@danielbachhuber Yes, it's UI for content that is out of view. Content that is in view would get sections added automatically. In other words, if the content is not in the preview, it wouldn't get a section added, so you'd have to use a Select2 to access it unless you wanted to navigate around the site to find an instance. |
… such as archive Clean up management of wp.customize.Posts.previewedQuery state. Consolidate logic into receivePreviewData
UI for content that is out of view looks pretty slick @westonruter has it been pushed to the plugin? |
I believe it will be in 0.7 though, going to test the dev branch anyway. |
@ahmadawais it's in the (Sorry for the accidental mention, @delawski.) |
Include Select2 As a Dependency for Script Resolves issue introduced in #196
public
).menu_order
(if hierarchical) orpost_date_gmt
(if non-hierarchical). Fixes Post List Doesn't Update in Sync with Pagination #124.customize_refresh_nonces
filter for exportingcustomize-posts
nonce to ensure it is kept fresh.wp.customize.Posts.parseSettingId()
utility function.wp.customize.Posts.gatherFetchedPostsData()
utility function.wp.customize.Posts.addPostSettings()
utility function.wp.customize.Posts.ensurePosts()
utility function, allowing plugins to ensure a post is loaded and section is present.WP_Customize_Posts::get_settings( $post_ids )
.WP_Customize_Posts:: get_setting_params( $setting )
.Todo
insertAutoDraftPost
function which makes an Ajax request that returns a response containing all of the post/postmeta settings that would be needed for the new post section.Fixes #124.
See #146.