mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Better checking for values for multisite upload limits. see #19538 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa3cf9d286
commit
7931ec33f1
@ -385,9 +385,11 @@ function get_upload_space_available() {
|
|||||||
*/
|
*/
|
||||||
function get_space_allowed() {
|
function get_space_allowed() {
|
||||||
$space_allowed = get_option( 'blog_upload_space' );
|
$space_allowed = get_option( 'blog_upload_space' );
|
||||||
if ( $space_allowed === false )
|
|
||||||
|
if ( ! is_numeric( $space_allowed ) )
|
||||||
$space_allowed = get_site_option( 'blog_upload_space' );
|
$space_allowed = get_site_option( 'blog_upload_space' );
|
||||||
if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
|
|
||||||
|
if ( ! is_numeric( $space_allowed ) )
|
||||||
$space_allowed = 50;
|
$space_allowed = 50;
|
||||||
|
|
||||||
return $space_allowed;
|
return $space_allowed;
|
||||||
|
Loading…
Reference in New Issue
Block a user