From 1c175f829e0be229eafaefee7d6acc2d557da4ff Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 26 Jul 2012 21:30:06 +0000 Subject: [PATCH] Deprecate and stub _insert_into_post_button(). fixes #20427 git-svn-id: http://core.svn.wordpress.org/trunk@21352 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/deprecated.php | 11 ++++++++++- wp-admin/includes/media.php | 24 ------------------------ 2 files changed, 10 insertions(+), 25 deletions(-) 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 ' - - - - - - - '; - - return ' - - - - ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . ' - - - '; -} - /** * Displays the multi-file uploader message. *