WordPress.org

Make WordPress Core

Ticket #21179: 21179.2.diff

File 21179.2.diff, 1.9 KB (added by SergeyBiryukov, 22 months ago)
  • wp-admin/includes/media.php

     
    20512051} 
    20522052 
    20532053/** 
    2054  * {@internal Missing Short Description}} 
     2054 * Displays the multi-file uploader message. 
    20552055 * 
    20562056 * @since 2.6.0 
    20572057 */ 
     
    20642064} 
    20652065add_action('post-plupload-upload-ui', 'media_upload_flash_bypass'); 
    20662066 
    2067 function multisite_over_quota_message() { 
    2068         echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>'; 
    2069 } 
    2070  
    20712067/** 
    2072  * {@internal Missing Short Description}} 
     2068 * Displays the browser's built-in uploader message. 
    20732069 * 
    20742070 * @since 2.6.0 
    20752071 */ 
     
    20822078} 
    20832079add_action('post-html-upload-ui', 'media_upload_html_bypass'); 
    20842080 
     2081/** 
     2082 * Displays the "After a file has been uploaded..." message. 
     2083 * 
     2084 * @since 3.3.0 
     2085 */ 
    20852086function media_upload_text_after() { 
    20862087        ?> 
    20872088        <span class="after-file-upload"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></span> 
     
    20902091add_action('post-upload-ui', 'media_upload_text_after', 5); 
    20912092 
    20922093/** 
    2093  * {@internal Missing Short Description}} 
     2094 * Displays the checkbox to scale images. 
    20942095 * 
    2095  * @since 2.6.0 
     2096 * @since 3.3.0 
    20962097 */ 
    20972098function media_upload_max_image_resize() { 
    20982099        $checked = get_user_setting('upload_resize') ? ' checked="true"' : ''; 
     
    21132114<?php 
    21142115} 
    21152116 
     2117/** 
     2118 * Displays the out of storage quota message in Multisite. 
     2119 * 
     2120 * @since 3.5.0 
     2121 */ 
     2122function multisite_over_quota_message() { 
     2123        echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>'; 
     2124} 
     2125 
    21162126add_filter( 'async_upload_image', 'get_media_item', 10, 2 ); 
    21172127add_filter( 'async_upload_audio', 'get_media_item', 10, 2 ); 
    21182128add_filter( 'async_upload_video', 'get_media_item', 10, 2 );