[wp-trac] [WordPress Trac] #52881: Recent posts widget: "Number of posts to show" option is ignored when on category pages
WordPress Trac
noreply at wordpress.org
Mon Mar 22 12:54:38 UTC 2021
#52881: Recent posts widget: "Number of posts to show" option is ignored when on
category pages
-------------------------------+------------------------------
Reporter: benjaminantoni | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 5.7
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => reporter-feedback
* component: General => Widgets
Comment:
Hi there, welcome to WordPress Trac! Thanks for the report.
I could not reproduce the issue on a clean install. Does it still happen
with all plugins disabled and a default theme (Twenty Twenty-One)
activated?
Looking at the widget code, the number of posts [source:tags/5.7/src/wp-
includes/widgets/class-wp-widget-recent-posts.php?marks=54-57,75#L34 does
not depend on category archives] in any way, so this seems like a plugin
or theme using a filter like
[https://developer.wordpress.org/reference/hooks/pre_get_posts/
pre_get_posts] without
[https://developer.wordpress.org/reference/hooks/pre_get_posts/#targeting-
the-right-query targeting the right query].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52881#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list