Make WordPress Core

Changeset 58140


Ignore:
Timestamp:
05/13/2024 04:24:14 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r58069 r58140  
    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                );
Note: See TracChangeset for help on using the changeset viewer.