This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Ensure that previewed changes apply on get_pages filter #241
Closed
Description
The call to get_pages()
may be (rightly) cached because it is used to build an entire tree of all posts. However, because the value may be cached, it will not respected the current customized state, besides the fact that it doesn't use WP_Query
to begin with.
- Call
\WP_Customize_Posts_Preview::preview_setup_postdata()
on each of the items in theget_pages
filter. - Ensure that newly-added pages are included and appear in the right sort order.
-
Ensure newly added posts via nav menus are included (the auto-drafts amongSee Ensure that post/page stubs created for nav menu items in WP4.7 can be edited #253.nav_menus_created_posts
). - Beware of the
$args
forget_pages
(other thanpost_type
) and howget_pages
would need to get re-applied. We have to initially support (perpage_attributes_meta_box
):post_type
,exclude_tree
,sort_column
.
This is a dependency for #65
Metadata
Metadata
Assignees
Labels
No labels