WordPress.org

Make WordPress Core

Changeset 1155 in tests


Ignore:
Timestamp:
11/23/12 15:52:01 (17 months ago)
Author:
ryan
Message:

Use wp_get_image_editor()

File:
1 edited

Legend:

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

    r1148 r1155  
    162162        include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); 
    163163        $file = wp_tempnam(); 
    164         $img = WP_Image_Editor::get_instance( DIR_TESTDATA . '/images/canola.jpg' ); 
     164        $img = wp_get_image_editor( DIR_TESTDATA . '/images/canola.jpg' ); 
    165165        wp_save_image_file( $file, $img, 'image/jpeg', 1 ); 
    166166        unset( $img ); 
Note: See TracChangeset for help on using the changeset viewer.