Skip to content

Commit 28cb3b8

Browse files
Docs: Make Settings API documentation link clickable in wp-admin/options.php.
The link is a part of the deprecation notice displayed when saving an unregistered setting. Follow-up to [13646], [13785], [14070], [32116], [34315], [45674]. Props timse201, sabernhardt, amitraj2203, khokansardar, SergeyBiryukov. Fixes #61199. git-svn-id: https://develop.svn.wordpress.org/trunk@58140 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5a95e31 commit 28cb3b8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/wp-admin/options.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,10 @@
322322
'options.php',
323323
'2.7.0',
324324
sprintf(
325-
/* translators: %s: The option/setting. */
326-
__( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/' ),
327-
'<code>' . esc_html( $option ) . '</code>'
325+
/* translators: 1: The option/setting, 2: Documentation URL. */
326+
__( 'The %1$s setting is unregistered. Unregistered settings are deprecated. See <a href="%2$s">documentation on the Settings API</a>.' ),
327+
'<code>' . esc_html( $option ) . '</code>',
328+
__( 'https://developer.wordpress.org/plugins/settings/settings-api/' )
328329
)
329330
);
330331
}

0 commit comments

Comments
 (0)