Changeset 14146 for trunk/wp-admin/includes/media.php
- Timestamp:
- 04/18/2010 09:09:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r14118 r14146 1162 1162 $thumb_url = false; 1163 1163 1164 $default_args = array( 'errors' => null, 'send' => post_type_supports(get_post_type($_GET['post_id']), 'editor'), 'delete' => true, 'toggle' => true, 'show_title' => true ); 1164 $post = get_post( $attachment_id ); 1165 1166 $default_args = array( 'errors' => null, 'send' => post_type_supports(get_post_type($post->post_parent), 'editor'), 'delete' => true, 'toggle' => true, 'show_title' => true ); 1165 1167 $args = wp_parse_args( $args, $default_args ); 1166 1168 extract( $args, EXTR_SKIP ); … … 1168 1170 $toggle_on = __( 'Show' ); 1169 1171 $toggle_off = __( 'Hide' ); 1170 1171 $post = get_post( $attachment_id );1172 1172 1173 1173 $filename = basename( $post->guid );
Note: See TracChangeset
for help on using the changeset viewer.