mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Deprecate get_blog_option(), add_blog_option(), update_blog_option(), and delete_blog_option().
Use the regular option functions wrapped in switch_to_blog() and restore_current_blog() instead. Group multiple operations within a single switch where possible. fixes #21432 git-svn-id: https://develop.svn.wordpress.org/trunk@21414 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -411,7 +411,10 @@ function fix_import_form_size( $size ) {
|
||||
|
||||
// Edit blog upload space setting on Edit Blog page
|
||||
function upload_space_setting( $id ) {
|
||||
$quota = get_blog_option( $id, 'blog_upload_space' );
|
||||
switch_to_blog( $id );
|
||||
$quota = get_option( 'blog_upload_space' );
|
||||
restore_current_blog();
|
||||
|
||||
if ( !$quota )
|
||||
$quota = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user