Skip to content

Commit fad4e87

Browse files
Remove unused parameter from auto_sizes_prime_attachment_caches()
1 parent dd0e12b commit fad4e87

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

plugins/auto-sizes/hooks.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,12 @@ function auto_sizes_get_width( string $layout_width, int $image_width ): string
144144
* @since n.e.x.t
145145
*
146146
* @param string|mixed $content The HTML content.
147-
* @param string $context Optional. Additional context to pass to the filters.
148-
* Defaults to `current_filter()` when not set.
149147
* @return string The HTML content.
150148
*/
151-
function auto_sizes_prime_attachment_caches( $content, string $context = null ): string {
149+
function auto_sizes_prime_attachment_caches( $content ): string {
152150
if ( ! is_string( $content ) ) {
153151
return '';
154152
}
155-
if ( null === $context ) {
156-
$context = current_filter();
157-
}
158153

159154
$processor = new WP_HTML_Tag_Processor( $content );
160155

0 commit comments

Comments
 (0)