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



wpmu_checkavailablespace ›

Sincen/a
已弃用3.0.0
wpmu_checkavailablespace ( 没有参数 )
查看:
定义在:
文档:

Determines if the available space defined by the admin has been exceeded by the user.



源码

function wpmu_checkAvailableSpace() {
	_deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );

	if ( ! is_upload_space_available() ) {
		wp_die( sprintf(
			/* translators: %s: Allowed space allocation. */
			__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
			size_format( get_space_allowed() * MB_IN_BYTES )
		) );
	}
}