diff --git a/wp-includes/option.php b/wp-includes/option.php
index ec30231..110db06 100644
|
a
|
b
|
function get_site_option( $option, $default = false, $use_cache = true ) { |
| 805 | 805 | * |
| 806 | 806 | * @param string $option Name of option to add. Expected to not be SQL-escaped. |
| 807 | 807 | * @param mixed $value Optional. Option value, can be anything. Expected to not be SQL-escaped. |
| | 808 | * @param mixed $deprecated Optional. Description. Not used anymore. |
| | 809 | * @param bool $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up. |
| 808 | 810 | * @return bool False if option was not added and true if option was added. |
| 809 | 811 | */ |
| 810 | | function add_site_option( $option, $value ) { |
| | 812 | function add_site_option( $option, $value, $deprecated = '', $autoload = 'yes' ) { |
| 811 | 813 | global $wpdb; |
| 812 | 814 | |
| 813 | 815 | wp_protect_special_option( $option ); |
| … |
… |
function add_site_option( $option, $value ) { |
| 816 | 818 | $notoptions_key = "{$wpdb->siteid}:notoptions"; |
| 817 | 819 | |
| 818 | 820 | if ( !is_multisite() ) { |
| 819 | | $result = add_option( $option, $value ); |
| | 821 | $result = add_option( $option, $value, '', $autoload ); |
| 820 | 822 | } else { |
| 821 | 823 | $cache_key = "{$wpdb->siteid}:$option"; |
| 822 | 824 | |