diff --git src/wp-admin/includes/media.php src/wp-admin/includes/media.php
index ba38188..c4638a4 100644
|
|
function edit_form_image_editor( $post ) { |
2679 | 2679 | |
2680 | 2680 | <?php |
2681 | 2681 | $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); |
2682 | | $editor_args = array( |
2683 | | 'textarea_name' => 'content', |
2684 | | 'textarea_rows' => 5, |
2685 | | 'media_buttons' => false, |
2686 | | 'tinymce' => false, |
2687 | | 'quicktags' => $quicktags_settings, |
| 2682 | |
| 2683 | /** |
| 2684 | * Filter the wp_editor() settings for the attachment description field. |
| 2685 | * |
| 2686 | * @since 3.9.0 |
| 2687 | * @see wp_editor() |
| 2688 | * @param array $args Accepts array of parameters for wp_editor(). |
| 2689 | */ |
| 2690 | $editor_args = apply_filters( 'attachment_description_editor_args', |
| 2691 | array( |
| 2692 | 'textarea_rows' => 5, |
| 2693 | 'media_buttons' => false, |
| 2694 | 'tinymce' => false, |
| 2695 | 'quicktags' => $quicktags_settings, |
| 2696 | ) |
2688 | 2697 | ); |
| 2698 | |
| 2699 | // Allow filtering anything except the textarea_name. |
| 2700 | $editor_args['textarea_name'] = 'content'; |
2689 | 2701 | ?> |
2690 | 2702 | |
2691 | 2703 | <label for="content"><strong><?php _e( 'Description' ); ?></strong></label> |