mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-12 00:24:34 +00:00
Only fall back to get_site_option() if blog_upload_space value is === false. Zero should not fall back. fixes #18119. props jakub.tyrcha
git-svn-id: https://develop.svn.wordpress.org/trunk@19314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -385,7 +385,7 @@ function get_upload_space_available() {
|
||||
*/
|
||||
function get_space_allowed() {
|
||||
$space_allowed = get_option( 'blog_upload_space' );
|
||||
if ( $space_allowed == false )
|
||||
if ( $space_allowed === false )
|
||||
$space_allowed = get_site_option( 'blog_upload_space' );
|
||||
if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
|
||||
$space_allowed = 50;
|
||||
|
||||
Reference in New Issue
Block a user