Plugin Directory

Changeset 2848435


Ignore:
Timestamp:
01/14/2023 05:14:20 PM (3 years ago)
Author:
codelessthemes
Message:

small PHP 8 changes

Location:
slider-templates/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • slider-templates/trunk/README.txt

    r2423015 r2848435  
    55Requires at least: 5.0
    66Tested up to: 5.4
    7 Stable tag: 5.4
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • slider-templates/trunk/admin/class-slider-templates-admin.php

    r2423015 r2848435  
    230230   
    231231        $response = wp_remote_get( 'https://slider-templates.com/wp-content/plugins/indeed-membership-pro/apigate.php?ihch=0g2gmyQKwnWbhjCRyRXGC6M3garvs&action=verify_user_level&uid='.$id.'&lid=3' );
    232         $data = json_decode( wp_remote_retrieve_body($response) ); 
    233         return $data->response;
    234        
     232        $data = json_decode( wp_remote_retrieve_body($response) );
     233        if( $data !== false && is_object($data) )
     234            return $data->response;
     235        return false;
    235236    }
    236237
  • slider-templates/trunk/slider-templates.php

    r2423015 r2848435  
    1717 * Plugin URI:        wordpress.org/plugins/slider-templates
    1818 * Description:       Easily Import slider-templates.com templates to WP
    19  * Version:           1.0.2
     19 * Version:           1.0.3
    2020 * Author:            Codeless
    2121 * Author URI:        codeless.co
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'SLIDER_TEMPLATES_VERSION', '1.0.2' );
     38define( 'SLIDER_TEMPLATES_VERSION', '1.0.3' );
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.