Changeset 22817 for trunk/wp-admin/includes/media.php
- Timestamp:
- 11/22/2012 09:52:16 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22807 r22817 1123 1123 1124 1124 $image_edit_button = ''; 1125 if ( gd_edit_image_support( $post->post_mime_type) ) {1125 if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) { 1126 1126 $nonce = wp_create_nonce( "image_editor-$post->ID" ); 1127 1127 $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>"; … … 2254 2254 2255 2255 $image_edit_button = ''; 2256 if ( gd_edit_image_support( $post->post_mime_type) ) {2256 if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) { 2257 2257 $nonce = wp_create_nonce( "image_editor-$post->ID" ); 2258 2258 $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";
Note: See TracChangeset
for help on using the changeset viewer.