diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index 747b228d53..9c33604e8d 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -938,4 +938,13 @@ function current_theme_info() { _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); return wp_get_theme(); -} \ No newline at end of file +} + +/** + * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed. + * + * @deprecated 3.5.0 + */ +function _insert_into_post_button( $type ) { + _deprecated_function( __FUNCTION__, '3.5' ); +} diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index cbd0d1a079..9e202bd487 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2026,30 +2026,6 @@ function wp_media_insert_url_form( $default_view = 'image' ) { } -function _insert_into_post_button($type) { - if ( !post_type_supports(get_post_type($_GET['post_id']), 'editor') ) - return ''; - - if ( 'image' == $type ) - return ' -