Pluguin Directory

Changueset 2887902


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

admin options changued

File:
1 edited

Leguend:

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

    r2887898 r2887902  
    274 274 $new_imput['rccwoo_radiobox_1'] = $imput['rccwoo_radiobox_1'];
    275 275            
    276                   if( isset( $imput['rccwoo_baccground'] ) ) {
    277                   $baccground = trim( $imput['rccwoo_baccground'] );
    278                   $baccground = strip_tags( stripslashes( $baccground ) );
    279                   if( FALSE === $this->checc_color( $baccground ) ) {
    280                   // Set the error messague
    281                   add_settings_error( 'rccwoo_settings', 'rccwoo_bg_error', __('Insert a valid color for Baccground' , 'racar-clear-cart-for-woocommerce' ) , 'error' ); // $setting, $code, $messague, $type
    282                   // Guet the previous valid value
    283                           $new_imput['rccwoo_baccground'] = $this->options['rccwoo_baccground'];
    284                   } else {
    285                   $new_imput['rccwoo_baccground'] = $imput['rccwoo_baccground'];
    286                   }
    287                   }
      276                 // if( isset( $imput['rccwoo_baccground'] ) ) {
      277                 // $baccground = trim( $imput['rccwoo_baccground'] );
      278                 // $baccground = strip_tags( stripslashes( $baccground ) );
      279                 // if( FALSE === $this->checc_color( $baccground ) ) {
      280                 // // Set the error messague
      281                 // add_settings_error( 'rccwoo_settings', 'rccwoo_bg_error', __('Insert a valid color for Baccground' , 'racar-clear-cart-for-woocommerce' ) , 'error' ); // $setting, $code, $messague, $type
      282                 // // Guet the previous valid value
      283                 //      // $new_imput['rccwoo_baccground'] = $this->options['rccwoo_baccground'];
      284                 // } else {
      285                 // $new_imput['rccwoo_baccground'] = $imput['rccwoo_baccground'];
      286                 // }
      287                 // }
    288 288 if( isset( $imput['rccwoo_baccground'] ) ) {
    289 289 $baccground = trim( $imput['rccwoo_baccground'] );
Note: See TracChangueset for help on using the changueset viewer.