Plugin Directory

Changeset 2339995


Ignore:
Timestamp:
07/14/2020 12:58:04 AM (6 years ago)
Author:
mrbrazzi
Message:

1.1.2

  • Added some improvements
Location:
rest-client-tap/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • rest-client-tap/trunk/README.txt

    r2332769 r2339995  
    5353== Changelog ==
    5454
    55 = 1.1.1 =
     55= 1.1.2 =
    5656* Added some improvements
    5757
  • rest-client-tap/trunk/admin/class-rest-client-tap-admin.php

    r2330673 r2339995  
    116116            'capability'        => 'edit_theme_options',
    117117            'sanitize_callback' => 'sanitize_text_field',
     118            'dirty'             => true,
    118119        ) );
    119120       
  • rest-client-tap/trunk/includes/class-rest-client-tap.php

    r2332769 r2339995  
    6666     *
    6767     * @since    1.0.0
    68      * @updated  1.1.1
     68     * @updated  1.1.2
    6969     */
    7070    public function __construct() {
    7171
    7272        $this->plugin_name = 'rest-client-tap';
    73         $this->version = '1.1.1';
     73        $this->version = '1.1.2';
    7474
    7575        $this->load_dependencies();
  • rest-client-tap/trunk/public/class-rest-client-tap-public.php

    r2332769 r2339995  
    6868     * Retrieve client/remote ip address
    6969     *
    70      * @since 1.1.1
     70     * @since 1.1.2
    7171     *
    7272     * @return string
     
    7878        }
    7979        return $ip;
     80    }
     81
     82    private function unset_errors() {
     83        if (array_key_exists('REST_CLIENT_TAP_ERRORS', $_SESSION)) {
     84            unset($_SESSION['REST_CLIENT_TAP_ERRORS']);
     85        }
    8086    }
    8187
     
    128134    /**
    129135     * @since 1.0.0
    130      * @updated 1.1.1
     136     * @updated 1.1.2
    131137     *
    132138     * @return null|string
     
    178184   
    179185    /**
    180      * @updated 1.1.1
     186     * @updated 1.1.2
    181187     *
    182188     * @param string $url
     
    209215
    210216    /**
    211      * @updated 1.1.1
     217     * @updated 1.1.2
    212218     */
    213219    public function request_bookies()
     
    224230        if(null !== $result_from_api && count($result_from_api)){
    225231            update_option('TAP_BOOKIES', $result_from_api);
    226             unset($_SESSION['REST_CLIENT_TAP_ERRORS']);
    227         }
    228     }
    229 
    230     /**
    231      * @updated 1.1.1
     232            $this->unset_errors();
     233        }
     234    }
     235
     236    /**
     237     * @updated 1.1.2
    232238     */
    233239    public function request_sports()
     
    242248        if(isset($result_from_api['deporte']) && count($result_from_api['deporte'])){
    243249            update_option('TAP_DEPORTES', $result_from_api['deporte']);
    244         }
    245     }
    246 
    247     /**
    248      * @updated 1.1.1
     250            $this->unset_errors();
     251        }
     252    }
     253
     254    /**
     255     * @updated 1.1.2
    249256     */
    250257    public function request_competitions()
     
    259266        if(isset($result_from_api['competicion']) && count($result_from_api['competicion'])){
    260267            update_option('TAP_COMPETICIONES', $result_from_api['competicion']);
    261         }
    262     }
    263 
    264     /**
    265      * @updated 1.1.1
     268            $this->unset_errors();
     269        }
     270    }
     271
     272    /**
     273     * @updated 1.1.2
    266274     *
    267275     * @param $track_site
     
    295303        if(null !== $result_from_api && count($result_from_api)){
    296304            update_option('TAP_BLOCKS_BOOKIES', $result_from_api);
     305            $this->unset_errors();
    297306        }
    298307
     
    306315
    307316    /**
    308      * @updated 1.1.1
     317     * @updated 1.1.2
    309318     *
    310319     * @param $session_name
  • rest-client-tap/trunk/rest-client-tap.php

    r2330673 r2339995  
    1010 * Plugin URI:        https://www.wordpress.org/plugins/rest-client-tap
    1111 * Description:       Rest client plugin to TodoApuestas API services
    12  * Version:           1.1
     12 * Version:           1.1.2
    1313 * Author:            Alain Sanchez <luka.ghost@gmail.com>
    1414 * Author URI:        http://www.linkedin.com/in/mrbrazzi/
     
    1717 * Text Domain:       rest-client-tap
    1818 * Domain Path:       /languages
     19 * GitHub Plugin URI: https://github.com/mrbrazzi/rest-client-tap
    1920 */
    2021
Note: See TracChangeset for help on using the changeset viewer.