Multisite: Tidy up [21256] and introduce/correct PHPDoc for a few other media upload functions.
Fixes #21179 props SergeyBiryukov. git-svn-id: http://core.svn.wordpress.org/trunk@21260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
189e833139
commit
4c33feb5ef
|
@ -2051,7 +2051,7 @@ function _insert_into_post_button($type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* Displays the multi-file uploader message.
|
||||||
*
|
*
|
||||||
* @since 2.6.0
|
* @since 2.6.0
|
||||||
*/
|
*/
|
||||||
|
@ -2064,12 +2064,8 @@ function media_upload_flash_bypass() {
|
||||||
}
|
}
|
||||||
add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
|
add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
|
||||||
|
|
||||||
function multisite_over_quota_message() {
|
|
||||||
echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* Displays the browser's built-in uploader message.
|
||||||
*
|
*
|
||||||
* @since 2.6.0
|
* @since 2.6.0
|
||||||
*/
|
*/
|
||||||
|
@ -2082,6 +2078,11 @@ function media_upload_html_bypass() {
|
||||||
}
|
}
|
||||||
add_action('post-html-upload-ui', 'media_upload_html_bypass');
|
add_action('post-html-upload-ui', 'media_upload_html_bypass');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays the "After a file has been uploaded..." message.
|
||||||
|
*
|
||||||
|
* @since 3.3.0
|
||||||
|
*/
|
||||||
function media_upload_text_after() {
|
function media_upload_text_after() {
|
||||||
?>
|
?>
|
||||||
<span class="after-file-upload"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></span>
|
<span class="after-file-upload"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></span>
|
||||||
|
@ -2090,9 +2091,9 @@ function media_upload_text_after() {
|
||||||
add_action('post-upload-ui', 'media_upload_text_after', 5);
|
add_action('post-upload-ui', 'media_upload_text_after', 5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* Displays the checkbox to scale images.
|
||||||
*
|
*
|
||||||
* @since 2.6.0
|
* @since 3.3.0
|
||||||
*/
|
*/
|
||||||
function media_upload_max_image_resize() {
|
function media_upload_max_image_resize() {
|
||||||
$checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
|
$checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
|
||||||
|
@ -2113,6 +2114,15 @@ function media_upload_max_image_resize() {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays the out of storage quota message in Multisite.
|
||||||
|
*
|
||||||
|
* @since 3.5.0
|
||||||
|
*/
|
||||||
|
function multisite_over_quota_message() {
|
||||||
|
echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>';
|
||||||
|
}
|
||||||
|
|
||||||
add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
|
add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
|
||||||
add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
|
add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
|
||||||
add_filter( 'async_upload_video', 'get_media_item', 10, 2 );
|
add_filter( 'async_upload_video', 'get_media_item', 10, 2 );
|
||||||
|
|
Loading…
Reference in New Issue