Make WordPress Core

Ticket #20427: 20427.patch

File 20427.patch, 836 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-admin/includes/media.php

     
    20382038
    20392039}
    20402040
    2041 function _insert_into_post_button($type) {
    2042         if ( !post_type_supports(get_post_type($_GET['post_id']), 'editor') )
    2043                 return '';
    2044 
    2045         if ( 'image' == $type )
    2046         return '
    2047                 <tr>
    2048                         <td></td>
    2049                         <td>
    2050                                 <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" />
    2051                         </td>
    2052                 </tr>
    2053         ';
    2054 
    2055         return '
    2056                 <tr>
    2057                         <td></td>
    2058                         <td>
    2059                                 ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . '
    2060                         </td>
    2061                 </tr>
    2062         ';
    2063 }
    2064 
    20652041/**
    20662042 * {@internal Missing Short Description}}
    20672043 *