Make WordPress Core

Changeset 60221


Ignore:
Timestamp:
05/05/2025 04:42:03 AM (10 months ago)
Author:
peterwilsoncc
Message:

Build/Test Tools: Fix file name references in [60219].

While it's true that package.json uses the format x.y.z, for the tests of other files using the same format it's best practice for the comments to reference the file being tested rather than provide a cool story about an unrelated file.

Cool story.

Follow up to [60219].

See #63390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/basic.php

    r60220 r60221  
    9191        list( $version )   = explode( '-', $GLOBALS['wp_version'] );
    9292
    93         // package.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
     93        // package-lock.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
    9494        if ( 1 === substr_count( $version, '.' ) ) {
    9595            $version .= '.0';
     
    130130        list( $version ) = explode( '-', $GLOBALS['wp_version'] );
    131131
    132         // package.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
     132        // composer.json uses x.y.z, so fill cleaned $wp_version for .0 releases.
    133133        if ( 1 === substr_count( $version, '.' ) ) {
    134134            $version .= '.0';
Note: See TracChangeset for help on using the changeset viewer.