mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Deprecate and stub _insert_into_post_button(). fixes #20427
git-svn-id: http://core.svn.wordpress.org/trunk@21352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c390c3afb0
commit
1c175f829e
@ -938,4 +938,13 @@ function current_theme_info() {
|
||||
_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
|
||||
|
||||
return wp_get_theme();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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' );
|
||||
}
|
||||
|
@ -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 '
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" />
|
||||
</td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
return '
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . '
|
||||
</td>
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the multi-file uploader message.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user