mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01: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: http://svn.automattic.com/wordpress/trunk@19314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb220fd555
commit
2e2c07f094
@ -385,7 +385,7 @@ 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 ( $space_allowed === false )
|
||||||
$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 ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
|
||||||
$space_allowed = 50;
|
$space_allowed = 50;
|
||||||
|
Loading…
Reference in New Issue
Block a user