Plugin Directory

Changeset 2887902


Ignore:
Timestamp:
03/27/2023 11:30:43 PM (3 years ago)
Author:
rafacarvalhido
Message:

admin options changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • racar-clear-cart-for-woocommerce/trunk/includes/admin/class-rccwoo_Admin_Options.php

    r2887898 r2887902  
    274274                $new_input['rccwoo_radiobox_1'] = $input['rccwoo_radiobox_1'];
    275275           
    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                 }
     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                // }
    288288                if( isset( $input['rccwoo_background'] ) ) {
    289289                    $background = trim( $input['rccwoo_background'] );
Note: See TracChangeset for help on using the changeset viewer.