WordPress.org

Make WordPress Core

Changeset 21260


Ignore:
Timestamp:
07/11/12 10:20:15 (22 months ago)
Author:
westi
Message:

Multisite: Tidy up [21256] and introduce/correct PHPDoc for a few other media upload functions.

Fixes #21179 props SergeyBiryukov.

File:
1 edited

Legend:

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

    r21256 r21260  
    20522052 
    20532053/** 
    2054  * {@internal Missing Short Description}} 
     2054 * Displays the multi-file uploader message. 
    20552055 * 
    20562056 * @since 2.6.0 
     
    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  
    2071 /** 
    2072  * {@internal Missing Short Description}} 
     2067/** 
     2068 * Displays the browser's built-in uploader message. 
    20732069 * 
    20742070 * @since 2.6.0 
     
    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    ?> 
     
    20912092 
    20922093/** 
    2093  * {@internal Missing Short Description}} 
    2094  * 
    2095  * @since 2.6.0 
     2094 * Displays the checkbox to scale images. 
     2095 * 
     2096 * @since 3.3.0 
    20962097 */ 
    20972098function media_upload_max_image_resize() { 
     
    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 ); 
Note: See TracChangeset for help on using the changeset viewer.