WordPress.org

Make WordPress Core

Changeset 31512


Ignore:
Timestamp:
02/22/2015 09:41:22 PM (7 years ago)
Author:
boonebgorges
Message:

Use PHP 5.2 compatible syntax in image tests.

T_PAAMAYIM_NEKUDOTAYIM, HAKUNA_MATATA, YOLO.

See [31510], #31124.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r31510 r31512  
    138138            // Save a file as each mime type, assert it works
    139139            foreach ( $mime_types as $mime_type ) {
    140                 if ( ! $class::supports_mime_type( $mime_type ) ) {
     140                if ( ! $img->supports_mime_type( $mime_type ) ) {
    141141                    continue;
    142142                }
     
    233233            $temp = get_temp_dir();
    234234            foreach ( $mime_types as $ext => $mime_type ) {
    235                 if ( ! $class::supports_mime_type( $mime_type ) ) {
     235                if ( ! $img->supports_mime_type( $mime_type ) ) {
    236236                    continue;
    237237                }
Note: See TracChangeset for help on using the changeset viewer.