Make WordPress Core

Changeset 21353


Ignore:
Timestamp:
07/26/2012 09:33:01 PM (12 years ago)
Author:
ryan
Message:

Deprecate and stub _media_button. fixes #21317

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r21352 r21353  
    949949    _deprecated_function( __FUNCTION__, '3.5' );
    950950}
     951
     952/**
     953 * This was once used to display a media button. Now it is deprecated and stubbed.
     954 *
     955 * @deprecated 3.5.0
     956 */
     957function _media_button($title, $icon, $type, $id) {
     958    _deprecated_function( __FUNCTION__, '3.5' );
     959}
  • trunk/wp-admin/includes/media.php

    r21352 r21353  
    386386}
    387387add_action( 'media_buttons', 'media_buttons' );
    388 
    389 function _media_button($title, $icon, $type, $id) {
    390     return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='{$id}-add_{$type}' class='thickbox add_$type' title='" . esc_attr( $title ) . "'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' onclick='return false;' /></a>";
    391 }
    392388
    393389function get_upload_iframe_src( $type = null, $post_id = null, $tab = null ) {
Note: See TracChangeset for help on using the changeset viewer.