Skip to:
Content

BuddyPress.org

Changeset 7916


Ignore:
Timestamp:
02/17/2014 07:58:28 PM (11 years ago)
Author:
boonebgorges
Message:

Define add_blog_option() in abstraction file for non-multisite

This prevents fatal errors when using bp_add_option() in non-multisite
environments.

Fixes #5406

Props imath, DJPaul

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-wpabstraction.php

    r7457 r7916  
    4242        function get_blog_option( $blog_id, $option_name, $default = false ) {
    4343            return get_option( $option_name, $default );
     44        }
     45    }
     46
     47    if ( ! function_exists( 'add_blog_option' ) ) {
     48        /**
     49         * @see add_blog_option()
     50         */
     51        function add_blog_option( $blog_id, $option_name, $option_value ) {
     52            return add_option( $option_name, $option_value );
    4453        }
    4554    }
Note: See TracChangeset for help on using the changeset viewer.