WordPress.org

Make WordPress Core

Changeset 1152 in tests


Ignore:
Timestamp:
11/22/12 20:18:55 (20 months ago)
Author:
scribu
Message:

remove unnecessary 'wp_image_editors' filter

File:
1 edited

Legend:

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

    r1151 r1152  
    3232        // Override the filters to set our own image editor 
    3333        add_filter( 'wp_image_editor_class', array( $this, 'image_editor_class' ) ); 
    34         add_filter( 'wp_image_editors', array( $this, 'wp_editors' ) ); 
    3534    } 
    3635 
     
    4039    public function tearDown() { 
    4140        remove_filter( 'wp_image_editor_class', array( $this, 'image_editor_class' ) ); 
    42         remove_filter( 'wp_image_editors', array( $this, 'wp_editors' ) ); 
    43     } 
    44  
    45     /** 
    46      * Override the wp_editors filter 
    47      * @return array 
    48      */ 
    49     public function wp_editors() { 
    50         return array( get_class( $this->editor ) ); 
    5141    } 
    5242 
Note: See TracChangeset for help on using the changeset viewer.