Output the "After a file has been uploaded..." message by using the post-upload-ui action, fixes #18764
git-svn-id: https://develop.svn.wordpress.org/trunk@19384 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3504002abe
commit
4feb285a78
@ -1378,14 +1378,12 @@ wpUploaderInit = <?php echo json_encode($plupload_init); ?>;
|
|||||||
<?php do_action('post-html-upload-ui'); ?>
|
<?php do_action('post-html-upload-ui'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) );
|
<span class="max-upload-size"><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); ?></span>
|
||||||
if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 )
|
|
||||||
echo ' <span class="big-file-warning">' . __('Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB.') . '</span></p><p>';
|
|
||||||
|
|
||||||
echo ' ' . __('After a file has been uploaded, you can add titles and descriptions.');
|
|
||||||
?></p>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 ) { ?>
|
||||||
|
<span class="big-file-warning"><?php _e('Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB.'); ?></span>
|
||||||
|
<?php }
|
||||||
|
|
||||||
do_action('post-upload-ui');
|
do_action('post-upload-ui');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2037,6 +2035,7 @@ function media_upload_flash_bypass() {
|
|||||||
</p>
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* {@internal Missing Short Description}}
|
||||||
@ -2050,10 +2049,15 @@ function media_upload_html_bypass() {
|
|||||||
</p>
|
</p>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
|
|
||||||
add_action('post-html-upload-ui', 'media_upload_html_bypass');
|
add_action('post-html-upload-ui', 'media_upload_html_bypass');
|
||||||
|
|
||||||
|
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>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_action('post-upload-ui', 'media_upload_text_after', 5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@internal Missing Short Description}}
|
* {@internal Missing Short Description}}
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user