Changeset 12059 for trunk/wp-admin/includes/media.php
- Timestamp:
- 10/19/2009 04:36:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r12055 r12059 1152 1152 $keys = array_keys(wp_match_mime_types(array_keys($post_mime_types), $post->post_mime_type)); 1153 1153 $type = array_shift($keys); 1154 $type = "<input type='hidden' id='type-of-$attachment_id' value='" . esc_attr( $type ) . "' />";1154 $type_html = "<input type='hidden' id='type-of-$attachment_id' value='" . esc_attr( $type ) . "' />"; 1155 1155 } 1156 1156 … … 1161 1161 $toggle_links = " 1162 1162 <a class='toggle describe-toggle-on' href='#'>$toggle_on</a> 1163 <a class='toggle describe-toggle-off' href='#'>$toggle_off</a> 1164 <a class='wp-post-thumbnail' href='#' onclick='WPSetAsThumbnail(\"" . intval( $attachment_id ) . "\");return false;'>" . esc_html__( "Use for thumbnail" ) . "</a>"; 1163 <a class='toggle describe-toggle-off' href='#'>$toggle_off</a>"; 1164 if ( 'image' == $type ) 1165 $toggle_links .= "<a class='wp-post-thumbnail' href='#' onclick='WPSetAsThumbnail(\"" . intval( $attachment_id ) . "\");return false;'>" . esc_html__( "Use for thumbnail" ) . "</a>"; 1165 1166 } else { 1166 1167 $class = 'form-table'; … … 1198 1199 1199 1200 $item = " 1200 $type 1201 $type_html 1201 1202 $toggle_links 1202 1203 $order
Note: See TracChangeset
for help on using the changeset viewer.