Make WordPress Core


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

Deprecate and stub _insert_into_post_button(). fixes #20427

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.