WordPress.org

Make WordPress Core

Changeset 1063 in tests


Ignore:
Timestamp:
10/02/2012 11:14:41 AM (6 years ago)
Author:
markoheijnen
Message:

Fix notices in /tests/image/resize.php caused by create_function()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/image/resize.php

    r1061 r1063  
    134134                continue;
    135135            }
    136             $filter = create_function( '', "return $class;" );
     136            $filter = create_function( '', "return '$class';" );
    137137            add_filter( 'image_editor_class', $filter );
    138138            $image = image_resize( DIR_TESTDATA.'/images/test-non-existent-image.jpg', 25, 25 );
     
    152152                continue;
    153153            }
    154             $filter = create_function( '', "return $class;" );
     154            $filter = create_function( '', "return '$class';" );
    155155            add_filter( 'image_editor_class', $filter );
    156156            $image = image_resize( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 );
Note: See TracChangeset for help on using the changeset viewer.