File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ function webp_uploads_add_media_settings_fields(): void {
6565 'perflab_modern_image_format_settings ' ,
6666 __ ( 'Modern Image Formats ' , 'webp-uploads ' ),
6767 '__return_empty_string ' ,
68- 'media '
68+ 'media ' ,
69+ array (
70+ 'before_section ' => '<div id="modern-image-formats"> ' ,
71+ 'after_section ' => '</div> ' ,
72+ )
6973 );
7074
7175 // Add a dropdown to select the output format between AVIF and WebP output.
@@ -179,7 +183,7 @@ function webp_uploads_add_settings_action_link( $links ) {
179183
180184 $ settings_link = sprintf (
181185 '<a href="%1$s">%2$s</a> ' ,
182- esc_url ( admin_url ( 'options-media.php#perflab_generate_webp_and_jpeg ' ) ),
186+ esc_url ( admin_url ( 'options-media.php#modern-image-formats ' ) ),
183187 esc_html__ ( 'Settings ' , 'webp-uploads ' )
184188 );
185189
You can’t perform that action at this time.
0 commit comments