Make WordPress Core


Ignore:
Timestamp:
10/18/2020 05:25:10 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Replace alias PHP functions with the canonical names.

Using the canonical function name for PHP functions is strongly recommended, as aliases may be deprecated or removed without (much) warning.

This replaces all uses of the following:

  • join() with implode()
  • sizeof() with count()
  • is_writeable() with is_writable()
  • doubleval() with a (float) cast

In part, this is a follow-up to #47746.

Props jrf.
See #50767.

File:
1 edited

Legend:

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

    r49117 r49193  
    513513        }
    514514
    515         $ids1_joined = join( ',', $ids1 );
    516         $ids2_joined = join( ',', $ids2 );
     515        $ids1_joined = implode( ',', $ids1 );
     516        $ids2_joined = implode( ',', $ids2 );
    517517
    518518        $blob    = <<<BLOB
     
    663663        }
    664664
    665         $ids1_joined = join( ',', $ids1 );
    666         $ids2_joined = join( ',', $ids2 );
     665        $ids1_joined = implode( ',', $ids1 );
     666        $ids2_joined = implode( ',', $ids2 );
    667667
    668668        $blob    = <<<BLOB
Note: See TracChangeset for help on using the changeset viewer.