Skip to content

58304 Move filter intermediate_image_sizes_advanced position #4758

Open
nirav7707 wants to merge 1 commit intoWordPress:trunkfrom
nirav7707:58304-wp-update-image-subsizes-filter-update
Open

58304 Move filter intermediate_image_sizes_advanced position #4758
nirav7707 wants to merge 1 commit intoWordPress:trunkfrom
nirav7707:58304-wp-update-image-subsizes-filter-update

Conversation

@nirav7707
Copy link
Copy Markdown

Ticket - https://core.trac.wordpress.org/ticket/58304

A pull request (PR) use to relocate the intermediate_image_sizes_advanced filter from the wp_create_image_subsizes function to the _wp_make_subsizes function. This change was made because the wp_update_image_subsizes function directly and indirectly invokes the _wp_make_subsizes function. When _wp_make_subsizes is called indirectly through wp_create_image_subsizes, the filter is available. However, when _wp_make_subsizes is directly called, the filter is not available. By moving the filter to _wp_make_subsizes, it ensures consistent availability of the filter regardless of how _wp_make_subsizes is invoked.

update the position of the filter intermediate_image_sizes_advanced
from wp_create_image_subsizes function to _wp_make_subsizes function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant