Ticket #22933: edit-patches.diff
File edit-patches.diff, 1.6 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/media.php
393 393 394 394 $img = '<span class="wp-media-buttons-icon"></span> '; 395 395 396 echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>';396 echo '<a href="#" id="insert-media-button" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>'; 397 397 398 398 // Don't use this filter. Want to add a button? Use the media_buttons action. 399 399 $legacy_filter = apply_filters('media_buttons_context', ''); // deprecated -
wp-admin/edit-form-advanced.php
360 360 ?> 361 361 <div id="postdivrich" class="postarea"> 362 362 363 <?php wp_editor($post->post_content, 'content', array('dfw' => true, 'tabfocus_elements' => ' sample-permalink,post-preview', 'editor_height' => 360) ); ?>363 <?php wp_editor($post->post_content, 'content', array('dfw' => true, 'tabfocus_elements' => 'insert-media-button,save-post', 'editor_height' => 360) ); ?> 364 364 365 365 <table id="post-status-info" cellspacing="0"><tbody><tr> 366 366 <td id="wp-word-count"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td>