Skip to content

Commit

Permalink
"Connector_Settings::callback_update_option()" signature parameter or…
Browse files Browse the repository at this point in the history
…der fixed.
  • Loading branch information
kidunot89 committed Oct 5, 2020
1 parent 76eb1d4 commit 94f1829
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectors/class-connector-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,12 +618,12 @@ function( $rule ) use ( $submenu, $record ) {
* @action update_option
*
* @param string $option Option name.
* @param mixed $value Option new value.
* @param mixed $old_value Option old value.
* @param mixed $value Option new value.
*/
public function callback_update_option( $option, $value, $old_value ) {
public function callback_update_option( $option, $old_value, $value ) {
if ( ( defined( '\WP_CLI' ) && \WP_CLI || did_action( 'customize_save' ) ) && array_key_exists( $option, $this->labels ) ) {
$this->callback_updated_option( $option, $value, $old_value );
$this->callback_updated_option( $option, $old_value, $value );
}
}

Expand Down

0 comments on commit 94f1829

Please sign in to comment.