Skip to content

Commit

Permalink
Use existing function for getting option value
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ink0 committed Dec 2, 2024
1 parent 4fdbcc0 commit 3a64713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/webp-uploads/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function webp_uploads_generate_webp_jpeg_setting_callback(): void {
* @since n.e.x.t
*/
function webp_uploads_generate_all_fallback_sizes_callback(): void {
$all_fallback_sizes_enabled = 1 === (int) get_option( 'perflab_generate_all_fallback_sizes', 0 );
$all_fallback_sizes_enabled = webp_uploads_should_generate_all_fallback_sizes();
$fallback_enabled = webp_uploads_is_fallback_enabled();
$all_fallback_sizes_hidden_id = 'perflab_generate_all_fallback_sizes_hidden';

Expand Down

0 comments on commit 3a64713

Please sign in to comment.