Skip to content

Commit 2e68884

Browse files
committed
Update settings link to point to the entire settings section
1 parent 0aa496e commit 2e68884

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎plugins/webp-uploads/settings.php‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)