wo_setting throws warnings
-
/srv/www/indeeddev.wpengine.test/wp-content/plugins/wp-oauth-server/includes/functions.php on line 434function wo_setting( $key = null ) { $default_settings = _WO()->defualt_settings; $settings = get_option( 'wo_options' ); $settings = array_merge( $default_settings, array_filter( $settings, function ( $value ) { return $value !== ''; } ) );This code throws warnings whenever
get_optionreturnsfalse, meaning the option did not already exist. We have a multisite with hundreds of sites. We need to setup each site.Warning: array_merge(): Argument #2 is not an array in /srv/www/indeeddev.wpengine.test/wp-content/plugins/wp-oauth-server/includes/functions.php on line 434
The topic ‘wo_setting throws warnings’ is closed to new replies.