Changeset 2887902
- Timestamp:
- 03/27/2023 11:30:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
racar-clear-cart-for-woocommerce/trunk/includes/admin/class-rccwoo_Admin_Options.php
r2887898 r2887902 274 274 $new_input['rccwoo_radiobox_1'] = $input['rccwoo_radiobox_1']; 275 275 276 if( isset( $input['rccwoo_background'] ) ) {277 $background = trim( $input['rccwoo_background'] );278 $background = strip_tags( stripslashes( $background ) );279 if( FALSE === $this->check_color( $background ) ) {280 // Set the error message281 add_settings_error( 'rccwoo_settings', 'rccwoo_bg_error', __('Insert a valid color for Background' , 'racar-clear-cart-for-woocommerce' ) , 'error' ); // $setting, $code, $message, $type282 // Get the previous valid value283 $new_input['rccwoo_background'] = $this->options['rccwoo_background'];284 } else {285 $new_input['rccwoo_background'] = $input['rccwoo_background'];286 }287 }276 // if( isset( $input['rccwoo_background'] ) ) { 277 // $background = trim( $input['rccwoo_background'] ); 278 // $background = strip_tags( stripslashes( $background ) ); 279 // if( FALSE === $this->check_color( $background ) ) { 280 // // Set the error message 281 // add_settings_error( 'rccwoo_settings', 'rccwoo_bg_error', __('Insert a valid color for Background' , 'racar-clear-cart-for-woocommerce' ) , 'error' ); // $setting, $code, $message, $type 282 // // Get the previous valid value 283 // // $new_input['rccwoo_background'] = $this->options['rccwoo_background']; 284 // } else { 285 // $new_input['rccwoo_background'] = $input['rccwoo_background']; 286 // } 287 // } 288 288 if( isset( $input['rccwoo_background'] ) ) { 289 289 $background = trim( $input['rccwoo_background'] );
Note: See TracChangeset
for help on using the changeset viewer.