WordPress.org

Make WordPress Core

Changeset 1154 in tests


Ignore:
Timestamp:
11/22/2012 09:06:57 PM (6 years ago)
Author:
scribu
Message:

fix filter name in Tests_Image_Functions

File:
1 edited

Legend:

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

    r1151 r1154  
    127127            }
    128128            $filter = create_function( '', "return '$class';" );
    129             add_filter( 'image_editor_class', $filter );
     129            add_filter( 'wp_image_editor_class', $filter );
    130130
    131131            // Call wp_save_image_file
     
    165165            }
    166166            $filter = create_function( '', "return '$class';" );
    167             add_filter( 'image_editor_class', $filter );
     167            add_filter( 'wp_image_editor_class', $filter );
    168168
    169169            // Save the file
     
    210210            }
    211211            $filter = create_function( '', "return '$class';" );
    212             add_filter( 'image_editor_class', $filter );
     212            add_filter( 'wp_image_editor_class', $filter );
    213213
    214214            // Save the image as each file extension, check the mime type
     
    247247            }
    248248            $filter = create_function( '', "return '$class';" );
    249             add_filter( 'image_editor_class', $filter );
     249            add_filter( 'wp_image_editor_class', $filter );
    250250            $editor = wp_get_image_editor( DIR_TESTDATA );
    251251            $this->assertInstanceOf( 'WP_Error', $editor );
Note: See TracChangeset for help on using the changeset viewer.