Make WordPress Core


Ignore:
Timestamp:
10/17/2026 04:58:15 AM (5 hours ago)
Author:
westonruter
Message:

Docs: Use @link instead of @see for URL references.

The WordPress inline documentation standards for PHP and JavaScript reserve @see for references to functions, methods, classes, and hooks, and use @link for URLs. While phpDocumentor and JSDoc both accept a URL in @see, core had used both forms for external references such as specifications, Trac tickets, and GitHub pull requests, so the remaining @see tags pointing to URLs are converted to @link across core, the bundled themes, core scripts, and the unit tests.

On the touched lines, @see is kept ahead of @link where both appear, per the standards; links to developer.wordpress.org pages for core functions in Twenty Twenty become @see references to those functions; and links that no longer resolve are updated. The block files synced from Gutenberg, the bundled pomo library, and other third-party code are left unchanged, and the HTML API is handled separately.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/10804.
Follow-up to r63569.

Props huzaifaalmesbah, westonruter, noruzzaman, shailu25.
See #65860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r64349 r64436  
    179179 * when using `wp-scripts start --hot`.
    180180 *
    181  * @see https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#start
     181 * @link https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#start
    182182 *
    183183 * @since 6.0.0
    … …  
    30523052                 * Prefetches the page's rel=prefetch links with fetch() in browsers that do not support rel=prefetch.
    30533053                 *
    3054                  * @see https://caniuse.com/link-rel-prefetch
     3054                 * @link https://caniuse.com/link-rel-prefetch
    30553055                 */
    30563056                () => {
    … …  
    46584658 * @since 6.9.0
    46594659 *
    4660  * @see https://html.spec.whatwg.org/#concept-domstringmap-pairs
    46614660 * @see \wp_html_custom_data_attribute_name()
     4661 * @link https://html.spec.whatwg.org/#concept-domstringmap-pairs
    46624662 *
    46634663 * @param string $html_attribute_name Raw attribute name as found in the source HTML.
    … …  
    46854685         * > followed it by the same character converted to ASCII uppercase.
    46864686         *
    4687          * @see https://html.spec.whatwg.org/#concept-domstringmap-pairs
     4687         * @link https://html.spec.whatwg.org/#concept-domstringmap-pairs
    46884688         */
    46894689        $custom_name = '';
    … …  
    47364736 * @since 6.9.0
    47374737 *
    4738  * @see https://html.spec.whatwg.org/#concept-domstringmap-pairs
    47394738 * @see \wp_js_dataset_name()
     4739 * @link https://html.spec.whatwg.org/#concept-domstringmap-pairs
    47404740 *
    47414741 * @param string $js_dataset_name Name of JS `dataset` property to transform.
Note: See TracChangeset for help on using the changeset viewer.