Skip to content

Commit

Permalink
Merge pull request #231 from hugosolar/fix/priority-bump-fix-webp-issue
Browse files Browse the repository at this point in the history
Bump priority in hook to make webp conversion works
  • Loading branch information
jeffpaul authored Jun 17, 2024
2 parents 68e68f1 + 85edf67 commit e07dd06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows-azure-storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ function azure_storage_media_menu( $tabs ) {

// Hooks for handling default file uploads.
if ( Windows_Azure_Helper::get_use_for_default_upload() ) {
add_filter( 'wp_generate_attachment_metadata', 'windows_azure_storage_wp_generate_attachment_metadata', 9, 2 );
add_filter( 'wp_generate_attachment_metadata', 'windows_azure_storage_wp_generate_attachment_metadata', 10, 2 );

if ( Windows_Azure_Helper::delete_local_file() ) {
add_filter( 'wp_generate_attachment_metadata', 'windows_azure_storage_delete_local_files', 9, 2 );
add_filter( 'wp_generate_attachment_metadata', 'windows_azure_storage_delete_local_files', 10, 2 );
}

// Hook for handling blog posts via xmlrpc. This is not full proof check.
Expand Down

0 comments on commit e07dd06

Please sign in to comment.