Make WordPress Core

Changeset 56429


Ignore:
Timestamp:
08/23/2023 02:00:49 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct duplicate hook reference for wp_min_priority_img_pixels.

The original filter location is wp_maybe_add_fetchpriority_high_attr() in wp-includes/media.php.

This commit updates the instance in wp_get_loading_optimization_attributes() to point to the correct file.

Follow-up to [56037], [56143], [56347].

Props tmatsuur, rajinsharwar, khokansardar.
Reviewed by azaozz, audrasjb.
Merges [56386] to the 6.3 branch.
Fixes #59067.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

  • branches/6.3/src/wp-includes/media.php

    r56245 r56429  
    56235623    // Closure to increase media count for images with certain minimum threshold, mostly used for header images.
    56245624    $maybe_increase_content_media_count = static function() use ( $attr ) {
    5625         /** This filter is documented in wp-admin/includes/media.php */
     5625        /** This filter is documented in wp-includes/media.php */
    56265626        $wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 );
    56275627        // Images with a certain minimum size in the header of the page are also counted towards the threshold.
Note: See TracChangeset for help on using the changeset viewer.