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.
Built from https://develop.svn.wordpress.org/trunk@58140


git-svn-id: http://core.svn.wordpress.org/trunk@57605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-05-13 16:26:10 +00:00
parent 87ba206026
commit f29b58aa91
2 changed files with 5 additions and 4 deletions

View File

@ -322,9 +322,10 @@ if ( 'update' === $action ) { // We are saving settings sent from a settings pag
'options.php',
'2.7.0',
sprintf(
/* translators: %s: The option/setting. */
__( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/' ),
'<code>' . esc_html( $option ) . '</code>'
/* translators: 1: The option/setting, 2: Documentation URL. */
__( 'The %1$s setting is unregistered. Unregistered settings are deprecated. See <a href="%2$s">documentation on the Settings API</a>.' ),
'<code>' . esc_html( $option ) . '</code>',
__( 'https://developer.wordpress.org/plugins/settings/settings-api/' )
)
);
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.6-alpha-58139';
$wp_version = '6.6-alpha-58140';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.