Make WordPress Core


Ignore:
Timestamp:
10/17/2026 04:58:15 AM (22 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/deprecated.php

    r64027 r64436  
    63856385         * settings depending on user permissions, etc.).
    63866386         * See some of the existing hooks to modify theme.json behavior:
    6387          * @see https://make.wordpress.org/core/2022/10/10/filters-for-theme-json-data/
     6387         * @link https://make.wordpress.org/core/2022/10/10/filters-for-theme-json-data/
    63886388         *
    63896389         * A different alternative considered was to invalidate the cache upon certain
    63906390         * events such as options add/update/delete, user meta, etc.
    63916391         * It was judged not enough, hence this approach.
    6392          * @see https://github.com/WordPress/gutenberg/pull/45372
     6392         * @link https://github.com/WordPress/gutenberg/pull/45372
    63936393         */
    63946394        $cache_key   = 'wp_get_global_styles_custom_css';
    … …  
    65186518 * @see wp_enqueue_img_auto_sizes_contain_css_fix()
    65196519 *
    6520  * @see https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size
    6521  * @see https://core.trac.wordpress.org/ticket/62413
    6522  * @see https://core.trac.wordpress.org/ticket/62731
     6520 * @link https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size
     6521 * @link https://core.trac.wordpress.org/ticket/62413
     6522 * @link https://core.trac.wordpress.org/ticket/62731
    65236523 */
    65246524function wp_print_auto_sizes_contain_css_fix() {
Note: See TracChangeset for help on using the changeset viewer.