media_upload_flash_bypass() - WordPress 函数参考中文文档

返回介绍

media_upload_flash_bypass()

发布于 2017-09-11 字数1376 浏览 731 评论 0

media_upload_flash_bypass()

Displays the multi-file uploader message.


描述


源代码

File: wp-admin/includes/media.php

function media_upload_flash_bypass() {
	$browser_uploader = admin_url( 'media-new.php?browser-uploader' );

	if ( $post = get_post() )
		$browser_uploader .= '&post_id=' . intval( $post->ID );
	elseif ( ! empty( $GLOBALS['post_ID'] ) )
		$browser_uploader .= '&post_id=' . intval( $GLOBALS['post_ID'] );

	?>
	<p class="upload-flash-bypass">
	<?php printf( __( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" target="%2$s">browser uploader</a> instead.' ), $browser_uploader, '_blank' ); ?>
	</p>
	<?php
}

更新日志

Version 描述
2.6.0 Introduced.

相关函数

Uses

  • wp-includes/l10n.php:
    __()
  • wp-includes/link-template.php:
    admin_url()
  • wp-includes/post.php:
    get_post()

User Contributed Notes

上一篇:media_upload_file()

下一篇:media_upload_form()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!