Changeset 21353
- Timestamp:
- 07/26/2012 09:33:01 PM (12 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r21352 r21353 949 949 _deprecated_function( __FUNCTION__, '3.5' ); 950 950 } 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 */ 957 function _media_button($title, $icon, $type, $id) { 958 _deprecated_function( __FUNCTION__, '3.5' ); 959 } -
trunk/wp-admin/includes/media.php
r21352 r21353 386 386 } 387 387 add_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 }392 388 393 389 function get_upload_iframe_src( $type = null, $post_id = null, $tab = null ) {
Note: See TracChangeset
for help on using the changeset viewer.