Make WordPress Core


Ignore:
Timestamp:
08/03/2012 05:51:42 PM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r21413 r21414  
    412412// Edit blog upload space setting on Edit Blog page
    413413function upload_space_setting( $id ) {
    414     $quota = get_blog_option( $id, 'blog_upload_space' );
     414    switch_to_blog( $id );
     415    $quota = get_option( 'blog_upload_space' );
     416    restore_current_blog();
     417
    415418    if ( !$quota )
    416419        $quota = '';
Note: See TracChangeset for help on using the changeset viewer.