Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

58304 Move filter intermediate_image_sizes_advanced position #4758

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

nirav7707
Copy link

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
1 participant