[wp-trac] [WordPress Trac] #55052: The tag field hangs the browsers when you have a bunch of tags
WordPress Trac
noreply at wordpress.org
Mon Feb 7 19:09:08 UTC 2022
#55052: The tag field hangs the browsers when you have a bunch of tags
-------------------------------------------------+-------------------------
Reporter: pikamander2 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9.1
Component: Query | Version: 5.9
Severity: critical | Resolution:
Keywords: has-patch needs-testing 2nd-opinion | Focuses:
| performance
-------------------------------------------------+-------------------------
Comment (by costdev):
@pikamander2 I see the latest patch has introduced a new filter,
`term_search_num_results`.
Some thoughts:
- The limit could be included in a minor release as a maintenance fix
given the reason for the ticket, but I'm not sure if a filter should be
introduced in a minor release or if `20` should added as a limit in 5.9.1
and the filter added in 6.0. One consideration that may make this suitable
for a minor release is that `20` may not be the preferred limit for some.
- The filter should have a docblock. See the other filters in the file for
examples.
- The filter may benefit from being applied on a line above the array
given the line length now. (i.e. `$number = apply_filters(...`)
- Something to consider later: Since this filter allows for a difference
between the Gutenberg limit and Classic limit, should the filter also be
included where Gutenberg sets the limit to `20`, if possible?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55052#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list