WordPress.org

Make WordPress Core

Ticket #24862: 24862.diff

File 24862.diff, 2.2 KB (added by devinreams, 9 months ago)

Quick pass at renaming button for consistency in dialog name opened

  • wp-admin/includes/media.php

     
    444444 
    445445        $img = '<span class="wp-media-buttons-icon"></span> '; 
    446446 
    447         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>'; 
     447        echo '<a href="#" id="insert-media-button" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Insert Media' ) . '">' . $img . __( 'Insert Media' ) . '</a>'; 
    448448 
    449449        // Don't use this filter. Want to add a button? Use the media_buttons action. 
    450450        $legacy_filter = apply_filters('media_buttons_context', ''); // deprecated 
  • wp-admin/edit-form-advanced.php

     
    257257} 
    258258 
    259259if ( 'post' == $post_type || 'page' == $post_type ) { 
    260         $inserting_media = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Add Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the &#8220;Create a new gallery&#8221; button.' ) . '</p>'; 
     260        $inserting_media = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Insert Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the &#8220;Create a new gallery&#8221; button.' ) . '</p>'; 
    261261        $inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. Please refer to the Codex to <a href="http://codex.wordpress.org/Embeds">learn more about embeds</a>.' ) . '</p>'; 
    262262 
    263263        get_current_screen()->add_help_tab( array(