Make WordPress Core

Changeset 21352


Ignore:
Timestamp:
07/26/2012 09:30:06 PM (14 years ago)
Author:
ryan
Message:

Deprecate and stub _insert_into_post_button(). fixes #20427

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

Legend:

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

    r20193 r21352  
    940940        return wp_get_theme();
    941941}
     942
     943/**
     944 * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed.
     945 *
     946 * @deprecated 3.5.0
     947 */
     948function _insert_into_post_button( $type ) {
     949        _deprecated_function( __FUNCTION__, '3.5' );
     950}
  • trunk/wp-admin/includes/media.php

    r21260 r21352  
    20272027}
    20282028
    2029 function _insert_into_post_button($type) {
    2030         if ( !post_type_supports(get_post_type($_GET['post_id']), 'editor') )
    2031                 return '';
    2032 
    2033         if ( 'image' == $type )
    2034         return '
    2035                 <tr>
    2036                         <td></td>
    2037                         <td>
    2038                                 <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" />
    2039                         </td>
    2040                 </tr>
    2041         ';
    2042 
    2043         return '
    2044                 <tr>
    2045                         <td></td>
    2046                         <td>
    2047                                 ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . '
    2048                         </td>
    2049                 </tr>
    2050         ';
    2051 }
    2052 
    20532029/**
    20542030 * Displays the multi-file uploader message.
Note: See TracChangeset for help on using the changeset viewer.