Make WordPress Core

Changeset 64607


Ignore:
Timestamp:
10/20/2026 04:41:15 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the @param tag in a wp_is_internal_link() test.

The tag for Tests_Link_WpIsInternalLink::test_wp_is_internal_link_returns_true_for_internal_urls() named a $path parameter, but the parameter is $scheme_and_path. The data provider passes a URL format with a %s placeholder for the home host, not a path, so the description is updated as well.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/14539.

Follow-up to r64510.

Props Soean.
See #65819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/link/wpIsInternalLink.php

    r64510 r64607  
    5858         * @dataProvider data_internal_links
    5959         *
    60          * @param string $path Path appended to the home host.
     60         * @param string $scheme_and_path URL format with a `%s` placeholder for the home host.
    6161         */
    6262        public function test_wp_is_internal_link_returns_true_for_internal_urls( $scheme_and_path ) {
Note: See TracChangeset for help on using the changeset viewer.