WordPress.org

Make WordPress Core

Ticket #22933: edit-patches.diff

File edit-patches.diff, 1.6 KB (added by adamsilverstein, 18 months ago)
  • wp-admin/includes/media.php

     
    393393 
    394394        $img = '<span class="wp-media-buttons-icon"></span> '; 
    395395 
    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>'; 
    397397 
    398398        // Don't use this filter. Want to add a button? Use the media_buttons action. 
    399399        $legacy_filter = apply_filters('media_buttons_context', ''); // deprecated 
  • wp-admin/edit-form-advanced.php

     
    360360?> 
    361361<div id="postdivrich" class="postarea"> 
    362362 
    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) ); ?> 
    364364 
    365365<table id="post-status-info" cellspacing="0"><tbody><tr> 
    366366        <td id="wp-word-count"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td>