[wp-trac] [WordPress Trac] #43174: Gutenberg uses deprecated recent posts
WordPress Trac
noreply at wordpress.org
Mon Jan 29 10:49:25 UTC 2018
#43174: Gutenberg uses deprecated recent posts
-------------------------------+---------------------------------
Reporter: LewisCowles | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration
-------------------------------+---------------------------------
Comment (by LewisCowles):
Hi @swissspidy,
Gutenberg already indirectly uses `WP_Query` that's how `get_posts` works.
The issue is that there is no way to hook what is sent to `WP_Query` in
either the gutenberg widget (which has a confusing name, hence `ui` tag),
or `get_posts`.
I am looking into `WP_Query` but Imagine it will have the same result or
lack of control (I only want to curate recent/latest posts).
Thanks for letting me know about Gutenberg. I will be raising an issue on
the GitHub, but it looks like any change would likely need to be in core
also (as it's simply using core, and the functionality I'd like is buried
within a widget class).
I can understand why things are the way they are. But I also believe I can
make them better without changing the main or edge cases.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43174#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list