Warning: This function has been deprecated. Use is_upload_space_available() instead.

wpmu_checkAvailableSpace() WordPress Function

This function is used to check whether there is enough available space on the server for a new installation of WordPress. It returns true if there is enough space, false if there is not enough space.

wpmu_checkAvailableSpace() #

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


Description

Top ↑

See also


Top ↑

Source

File: wp-admin/includes/ms-deprecated.php

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 )
		) );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.