WordPress.org

Make WordPress Core

Changeset 22828


Ignore:
Timestamp:
11/22/2012 01:23:27 PM (8 years ago)
Author:
nacin
Message:

Mustn't forget to hide the legacy media uploader! see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r22817 r22828  
    388388    ) );
    389389
    390     $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
     390    // $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
    391391
    392392    $img = '<span class="wp-media-buttons-icon"></span> ';
     
    394394    echo '<a href="#" class="button insert-media add_media" data-editor="' . esc_attr( $editor_id ) . '" title="' . esc_attr__( 'Add Media' ) . '">' . $img . __( 'Add Media' ) . '</a>';
    395395
    396     echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';
     396    // echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';
    397397}
    398398add_action( 'media_buttons', 'media_buttons' );
Note: See TracChangeset for help on using the changeset viewer.