Changeset 22867
- Timestamp:
- 11/27/2012 03:06:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r22853 r22867 1133 1133 1134 1134 $image_edit_button = ''; 1135 if ( wp_ image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {1135 if ( wp_attachment_is_image( $post->ID ) && wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) { 1136 1136 $nonce = wp_create_nonce( "image_editor-$post->ID" ); 1137 1137 $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>"; … … 2271 2271 2272 2272 $image_edit_button = ''; 2273 if ( wp_ image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {2273 if ( wp_attachment_is_image( $post->ID ) && wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) { 2274 2274 $nonce = wp_create_nonce( "image_editor-$post->ID" ); 2275 2275 $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.