do_action( 'pre-plupload-upload-ui'
); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
if ( 10 ===
remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass'
) ) { /** This action is documented in wp-admin/includes/media.php */
do_action( 'post-plupload-upload-ui'
); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass'
);
} else { /** This action is documented in wp-admin/includes/media.php */
do_action( 'post-plupload-upload-ui'
); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
} $max_upload_size =
wp_max_upload_size();
if ( !
$max_upload_size ) { $max_upload_size = 0;
} ?>
<p class="max-upload-size">
<?php
printf( /* translators: %s: Maximum allowed file size. */
__( 'Maximum upload file size: %s.'
),
esc_html( size_format( $max_upload_size ) ) );