diff --git wp-includes/class-wp-customize-setting.php wp-includes/class-wp-customize-setting.php
index 0207b70..1fc976d 100644
|
|
|
class WP_Customize_Setting {
|
| 171 | 171 | * @return false|null False if cap check fails or value isn't set. |
| 172 | 172 | */ |
| 173 | 173 | public final function save() { |
| 174 | | $value = $this->post_value(); |
| | 174 | |
| | 175 | /** |
| | 176 | * Filter a Customize setting value before the setting is saved. |
| | 177 | * |
| | 178 | * @since 4.2.0 |
| | 179 | * |
| | 180 | * @param mixed $value Value of the setting. |
| | 181 | * @param WP_Customize_Setting $this WP_Customize_Setting instance. |
| | 182 | */ |
| | 183 | $value = apply_filters( 'customize_save_value', $this->post_value(), $this ); |
| 175 | 184 | |
| 176 | 185 | if ( ! $this->check_capabilities() || ! isset( $value ) ) |
| 177 | 186 | return false; |