|
@@ 177-180 (lines=4) @@
|
| 174 |
|
$instance['color-scheme'] = $this->filter_value( $new_instance['color-scheme'], $this->color_scheme_options ); |
| 175 |
|
$instance['policy-url'] = $this->filter_value( $new_instance['policy-url'], $this->policy_url_options ); |
| 176 |
|
|
| 177 |
|
if ( isset( $new_instance['hide-timeout'] ) ) { |
| 178 |
|
// Time can be a value between 3 and 1000 seconds. |
| 179 |
|
$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) ); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
if ( isset( $new_instance['consent-expiration'] ) ) { |
| 183 |
|
// Time can be a value between 1 and 365 days. |
|
@@ 182-185 (lines=4) @@
|
| 179 |
|
$instance['hide-timeout'] = min( 1000, max( 3, intval( $new_instance['hide-timeout'] ) ) ); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
if ( isset( $new_instance['consent-expiration'] ) ) { |
| 183 |
|
// Time can be a value between 1 and 365 days. |
| 184 |
|
$instance['consent-expiration'] = min( 365, max( 1, intval( $new_instance['consent-expiration'] ) ) ); |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
if ( isset( $new_instance['customtext'] ) ) { |
| 188 |
|
$instance['customtext'] = mb_substr( wp_kses( $new_instance['customtext'], array() ), 0, 4096 ); |