[wp-trac] [WordPress Trac] #45349: wp_get_recent_posts() Add filter for $args
WordPress Trac
noreply at wordpress.org
Wed Nov 14 16:05:14 UTC 2018
#45349: wp_get_recent_posts() Add filter for $args
-------------------------------+------------------------------
Reporter: sergey.r | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 5.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch => reporter-feedback
* type: feature request => enhancement
* component: General => Posts, Post Types
* severity: major => normal
Comment:
Hi @sergey.r, welcome to WordPress Trac! Thanks for the ticket.
> Eg. WPML will need to display posts in the current language only.
Wouldn't the existing `pre_get_posts` filter be sufficient for that? It
runs on `wp_get_recent_posts()` as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45349#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list