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

返回介绍

media_upload_gallery()

发布于 2017-09-11 字数1195 浏览 838 评论 0

media_upload_gallery()

Retrieves the legacy media uploader form in an iframe.


描述


返回值

(string|null)


源代码

File: wp-admin/includes/media.php

function media_upload_gallery() {
	$errors = array();

	if ( !empty($_POST) ) {
		$return = media_upload_form_handler();

		if ( is_string($return) )
			return $return;
		if ( is_array($return) )
			$errors = $return;
	}

	wp_enqueue_script('admin-gallery');
	return wp_iframe( 'media_upload_gallery_form', $errors );
}

更新日志

Version 描述
2.5.0 Introduced.

相关函数

Uses

  • wp-admin/includes/media.php:
    media_upload_form_handler()
  • wp-admin/includes/media.php:
    wp_iframe()
  • wp-includes/functions.wp-scripts.php:
    wp_enqueue_script()

User Contributed Notes

发布评论

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

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