Skip to content

Commit

Permalink
Increase filter priority of extract_by_filename_or_filesystem to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter authored Aug 5, 2021
1 parent 682d516 commit bec8f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/utils/class-amp-image-dimension-extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function normalize_url( $url ) {
private static function register_callbacks() {
self::$callbacks_registered = true;

add_filter( 'amp_extract_image_dimensions_batch', [ __CLASS__, 'extract_by_filename_or_filesystem' ] );
add_filter( 'amp_extract_image_dimensions_batch', [ __CLASS__, 'extract_by_filename_or_filesystem' ], 100 );
add_filter( 'amp_extract_image_dimensions_batch', [ __CLASS__, 'extract_by_downloading_images' ], 999, 1 );

/**
Expand Down

0 comments on commit bec8f93

Please sign in to comment.