| @@ -112,11 +112,8 @@ | ||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | $plugin_options = $this->plugin_options->get(); |
| 115 | 115 | $user_options = $this->user_options->get(); |
| 116 | - | |
| 117 | - $old_options = array_merge( $plugin_options, $user_options ); | |
| 118 | - | |
| 119 | 116 | foreach ( $new_options as $name => $value ) { |
| 120 | 117 | if ( isset( $this->default_plugin_options[ $name ] ) ) { |
| 121 | 118 | $plugin_options[ $name ] = $value; |
| 122 | 119 | } elseif ( isset( $this->default_user_options[ $name ] ) ) { |
| @@ -127,17 +124,8 @@ | ||
| 127 | 124 | } |
| 128 | 125 | |
| 129 | 126 | $this->plugin_options->update( $plugin_options ); |
| 130 | 127 | $this->user_options->update( $user_options ); |
| 131 | - | |
| 132 | - /** | |
| 133 | - * Fires after the options have been saved. | |
| 134 | - * | |
| 135 | - * @since 3.1.0 | |
| 136 | - * | |
| 137 | - * @param array<string, mixed> $old_options Array of all options before the update. | |
| 138 | - */ | |
| 139 | - do_action( 'tablepress_event_updated_options', $old_options ); | |
| 140 | 128 | } |
| 141 | 129 | |
| 142 | 130 | /** |
| 143 | 131 | * Get the value of a single option, or an array with all options. |