Make WordPress Core


Ignore:
Timestamp:
11/26/2012 02:42:43 PM (13 years ago)
Author:
ryan
Message:

Make is_upload_space_available() available for front end page loads. Fixes fatal error when calling wp_editor() from the front end.

Props scribu, itworx
fixes #22585

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r22497 r22840  
    273273}
    274274add_action( 'admin_notices', 'new_user_email_admin_notice' );
    275 
    276 /**
    277  * Determines if there is any upload space left in the current blog's quota.
    278  *
    279  * @since 3.0.0
    280  * @return bool True if space is available, false otherwise.
    281  */
    282 function is_upload_space_available() {
    283     if ( get_site_option( 'upload_space_check_disabled' ) )
    284         return true;
    285 
    286     if ( !( $space_allowed = get_upload_space_available() ) )
    287         return false;
    288 
    289     return true;
    290 }
    291275
    292276/**
Note: See TracChangeset for help on using the changeset viewer.