[wp-trac] [WordPress Trac] #63473: Most recent tab in classic menu is not showing special pages (front, posts, privacy policy)
WordPress Trac
noreply at wordpress.org
Thu May 29 19:18:25 UTC 2025
#63473: Most recent tab in classic menu is not showing special pages (front, posts,
privacy policy)
-------------------------------------------------+-------------------------
Reporter: zodiac1978 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Menus | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch has-test-info needs- | Focuses:
testing needs-unit-tests |
-------------------------------------------------+-------------------------
Comment (by umesh.nevase):
Ok, great, We can stick to 15 units.
Replying to [comment:11 SirLouen]:
> Replying to [comment:10 umesh.nevase]:
> > Can we can remove the line?
> >
> > {{{
> > $most_recent = array_slice( $most_recent, 0, 15 );
> > }}}
> >
> > On the View all tab, we are having 3 Important Pages + 50 pages with
pagination.
> >
> > Same for Most recent tab, We can show 3 important pages + 15 Most
recent pages. We don't have slice most recent array.
> >
>
> Atm I'm reworking this feature completely and adding some unit tests. I
have a better version now, but before pushing it I will be adding the unit
tests (that for some reason are not working as expected)
>
> The number 15 is just because the query as you can see is limited to 15
results. In the View All tab for some reason, they have added up to 50
pages with pagination (and there is a bug reported without a solution yet,
where pagination goes crazy when there are child pages and it paginates if
you want to search for this).
>
> Here I'm going to stick to 15 units, because its the canonical number
(and I don't think its a great idea to add more to the default view
because theoretically Most recent is not designed to browse posts, for
this you have all, and search)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63473#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list