Ticket #22759: 22759.throw-in-the-towel.diff
File 22759.throw-in-the-towel.diff, 4.0 KB (added by , 12 years ago) |
---|
-
wp-includes/js/media-editor.js
554 554 props = wp.media.string.props( props, attachment ); 555 555 556 556 options = { 557 id: attachment.id 557 id: attachment.id, 558 post_content: attachment.description 558 559 }; 559 560 560 561 if ( props.linkUrl ) -
wp-includes/js/media-views.js
2829 2829 width: '', 2830 2830 height: '', 2831 2831 compat: false, 2832 alt: '' 2832 alt: '', 2833 description: '', 2833 2834 }); 2834 2835 2835 2836 options.buttons = this.buttons; -
wp-includes/media.php
1749 1749 <# } #>/> 1750 1750 </label> 1751 1751 <# } #> 1752 <label class="setting" data-setting="description"> 1753 <span><?php _e('Description'); ?></span> 1754 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 1755 </label> 1752 1756 </script> 1753 1757 1754 1758 <script type="text/html" id="tmpl-media-selection"> -
wp-admin/includes/ajax-actions.php
1884 1884 if ( isset( $changes['caption'] ) ) 1885 1885 $post['post_excerpt'] = $changes['caption']; 1886 1886 1887 if ( isset( $changes['description'] ) ) 1888 $post['post_content'] = $changes['description']; 1889 1887 1890 if ( isset( $changes['alt'] ) ) { 1888 1891 $alt = get_post_meta( $id, '_wp_attachment_image_alt', true ); 1889 1892 $new_alt = stripslashes( $changes['alt'] ); -
wp-admin/includes/meta-boxes.php
313 313 ); 314 314 ?> 315 315 <p> 316 <label class="screen-reader-text" for="content"><strong><?php _e( ' Attachment Page Content' ); ?></strong></label>316 <label class="screen-reader-text" for="content"><strong><?php _e( 'Description' ); ?></strong></label> 317 317 <?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?> 318 318 </p> 319 319 <?php -
wp-admin/includes/media.php
1329 1329 $form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post ); 1330 1330 1331 1331 unset( $form_fields['image-size'], $form_fields['align'], $form_fields['image_alt'], 1332 $form_fields['post_title'], $form_fields['post_excerpt'], 1332 $form_fields['post_title'], $form_fields['post_excerpt'], $form_fields['post_content'], 1333 1333 $form_fields['url'], $form_fields['menu_order'], $form_fields['image_url'] ); 1334 1334 1335 if ( ! $args['description'] )1336 unset( $form_fields['post_content'] );1337 1338 1335 $media_meta = apply_filters( 'media_meta', '', $post ); 1339 1336 1340 1337 $defaults = array( -
wp-admin/edit-form-advanced.php
107 107 wp_enqueue_script( 'image-edit' ); 108 108 wp_enqueue_style( 'imgareaselect' ); 109 109 add_meta_box( 'submitdiv', __('Save'), 'attachment_submit_meta_box', null, 'side', 'core' ); 110 add_meta_box( 'attachmentdata', __(' Attachment Page Content'), 'attachment_content_meta_box', null, 'normal', 'core' );110 add_meta_box( 'attachmentdata', __('Description'), 'attachment_content_meta_box', null, 'normal', 'core' ); 111 111 add_action( 'edit_form_after_title', 'edit_form_image_editor' ); 112 112 } else { 113 113 add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', null, 'side', 'core' );