Changeset 22817 for trunk/wp-admin/includes/image-edit.php
- Timestamp:
- 11/22/2012 09:52:16 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image-edit.php
r22807 r22817 458 458 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 459 459 460 $img = WP_Image_Editor::get_instance( _load_image_to_edit_path( $post_id ) );460 $img = wp_get_image_editor( _load_image_to_edit_path( $post_id ) ); 461 461 462 462 if ( is_wp_error( $img ) ) … … 567 567 $post = get_post( $post_id ); 568 568 569 $img = WP_Image_Editor::get_instance( _load_image_to_edit_path( $post_id, 'full' ) );569 $img = wp_get_image_editor( _load_image_to_edit_path( $post_id, 'full' ) ); 570 570 if ( is_wp_error( $img ) ) { 571 571 $return->error = esc_js( __('Unable to create new image.') );
Note: See TracChangeset
for help on using the changeset viewer.