Plugin Directory

Changeset 3033558


Ignore:
Timestamp:
02/09/2024 09:43:51 AM (2 years ago)
Author:
krinay
Message:

Released version 1.0.5

Location:
wpem-rest-api/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • wpem-rest-api/trunk/includes/rest-api/wpem-rest-authentication.php

    r2980102 r3033558  
    657657                $wpdb->prepare(
    658658                    "
    659                         SELECT key_id, app_key, user_id, permissions, consumer_key, consumer_secret, nonces
     659                        SELECT key_id, app_key, user_id, permissions, consumer_key, consumer_secret, nonces, date_expires
    660660                        FROM {$wpdb->prefix}wpem_rest_api_keys
    661661                        WHERE app_key = %s
     
    664664                )
    665665            );
     666            if( !empty($key_data->date_expires ) && strtotime( $key_data->date_expires ) >= strtotime( date('Y-m-d H:i:s') ) ){
     667                $key_data->expiry  = false;
     668            }else{
     669                $key_data->expiry  = true;
     670            }
    666671            if( empty( $key_data ) )
    667672                $key_data = array( 'wpem_rest_authentication_error', __( 'Invalid APP ID.', 'wpem-rest-api' ), array( 'status' => 401 ) );
  • wpem-rest-api/trunk/readme.txt

    r2980102 r3033558  
    66Requires at least: 4.1
    77Tested up to: 6.2.2
    8 Stable tag: 1.0.4
     8Stable tag: 1.0.5
    99Requires PHP: 5.6
    1010License: GPLv3
     
    120120== Changelog ==
    121121
     122
     123= 1.0.5 [ 9th Feb 2023 ] =
     124
     125Fixed : Remove a message from the App branding page.
     126Added : API key expiry status is added.
     127
    122128= 1.0.4 [ 17th Oct 2023 ] =
    123129
  • wpem-rest-api/trunk/wpem-rest-api.php

    r2980102 r3033558  
    1010* Text Domain: wpem-rest-api
    1111* Domain Path: /languages
    12 * Version: 1.0.4
     12* Version: 1.0.5
    1313* Since: 1.0.0
    1414*
     
    4141
    4242        // Define constants
    43         define( 'WPEM_REST_API_VERSION', '1.0.4' );
     43        define( 'WPEM_REST_API_VERSION', '1.0.5' );
    4444        define( 'WPEM_REST_API_FILE', __FILE__ );
    4545        define( 'WPEM_REST_API_PLUGIN_DIR', untrailingslashit( plugin_dir_path(__FILE__ ) ) );
Note: See TracChangeset for help on using the changeset viewer.