mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@13508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
601c2f4dfc
commit
3bf738fcc2
@ -512,7 +512,7 @@ function update_option( $option, $newvalue ) {
|
||||
$_newvalue = $newvalue;
|
||||
$newvalue = maybe_serialize( $newvalue );
|
||||
|
||||
do_action( 'update_option', $option, $oldvalue, $newvalue ); // $newvalue may be serialized.
|
||||
do_action( 'update_option', $option, $oldvalue, $_newvalue );
|
||||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
$alloptions = wp_load_alloptions();
|
||||
if ( isset( $alloptions[$option] ) ) {
|
||||
@ -579,7 +579,7 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' )
|
||||
$_value = $value;
|
||||
$value = maybe_serialize( $value );
|
||||
$autoload = ( 'no' === $autoload ) ? 'no' : 'yes';
|
||||
do_action( 'add_option', $option, $value );
|
||||
do_action( 'add_option', $option, $_value );
|
||||
if ( ! defined( 'WP_INSTALLING' ) ) {
|
||||
if ( 'yes' == $autoload ) {
|
||||
$alloptions = wp_load_alloptions();
|
||||
|
Loading…
Reference in New Issue
Block a user