WordPress开发者和主题制作者的搜索引擎



media_upload_header ›

Since2.5.0
已弃用n/a
media_upload_header ( 没有参数 )
定义在:
文档:

Outputs the legacy media upload header.



源码

function media_upload_header() {
	$post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;

	echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';

	if ( empty( $_GET['chromeless'] ) ) {
		echo '<div id="media-upload-header">';
		the_media_upload_tabs();
		echo '</div>';
	}
}