#59067 closed defect (bug) (fixed)
Comment text regarding wp_min_priority_img_pixels filter in wp_get_loading_optimization_attributes function
Reported by: | tmatsuur | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.3.1 | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | Media | Keywords: | has-patch fixed-major dev-reviewed commit |
Focuses: | docs | Cc: |
Description
The wp_min_priority_img_pixels filter portion of the wp_get_loading_optimization_attributes function is described as follows
/** This filter is documented in wp-admin/includes/media.php */ $wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 );
I looked in wp-admin/includes/media.php and there is no mention of this filter.
Instead, I found a description of this filter in the wp_maybe_add_fetchpriority_high_attr function in wp-includes/media.php.
Is it possible that the wp_maybe_add_fetch_priority_high_attr function has been changed from wp-admin/includes/media.php to wp-includes/media.php?
If so, that would explain why there was "wp-admin/includes/media.php" in the comment text.
I think the following comment text is correct
/** This filter is documented in wp-includes/media.php */
Change History (15)
This ticket was mentioned in PR #4995 on WordPress/wordpress-develop by @rajinsharwar.
16 months ago
#2
- Keywords has-patch added
Fixing the comment text of wp-includes/media.php
Trac ticket: https://core.trac.wordpress.org/ticket/59067
This ticket was mentioned in PR #4997 on WordPress/wordpress-develop by @khokansardar.
16 months ago
#4
#5
@
16 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 56386:
@SergeyBiryukov commented on PR #4995:
16 months ago
#6
Thanks for the PR! Merged in r56386.
@SergeyBiryukov commented on PR #4997:
16 months ago
#7
Thanks for the PR! Merged in r56386.
#8
@
16 months ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 6.3.1 consideration.
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
16 months ago
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
16 months ago
#11
@
16 months ago
- Keywords dev-reviewed commit added
As per today's bug scrub, marking as dev-reviewed
.
#12
follow-up:
↓ 14
@
16 months ago
@SergeyBiryukov I wanted to backport this to branch 6.3 but I had a conflict. Do you reproduce the issue on your side?
#14
in reply to:
↑ 12
@
16 months ago
Replying to audrasjb:
I wanted to backport this to branch 6.3 but I had a conflict. Do you reproduce the issue on your side?
Yeah, it's because of the changes in [56386] for trunk. I have resolved the conflicts and backported in [56429] :)
Thanks for the ticket!
Indeed, the
wp_min_priority_img_pixels
filter is located inwp-includes/media.php
since its introduction in [56037] / #58235 so the proposed change would be correct.