Opened 9 years ago
Closed 9 years ago
#1376 closed defect (bug) (fixed)
Number of the link to "Show %d more used by" is wrong,
Reported by: | pedroghandi | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | has-patch |
Cc: |
Description (last modified by )
Hi, on the Code reference, the sections "Used by" and "Uses" have links to show and hide more functions.
For example, here:
https://developer.wordpress.org/reference/classes/wp_press_this/save_post/
it shows 5 by default and has a link to show 16 more uses, but in reality, it only shows more 11. The total references is 16.
It should be
$used_by->post_count - 5
( see lines 145 and 164 in https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php?marks=145,164#L136 )
or change the wording "Show all used by". If the latter, then "hide more used by" should also be changed to something like "show fewer used by"
Same for "Show %d more uses".
do you need a patch or this is trivial to change?
In meta-1376.patch:
number_format_i18n()
.'Show 1 more'
with'Show %d more'
.