Changeset 3033558
- Timestamp:
- 02/09/2024 09:43:51 AM (2 years ago)
- Location:
- wpem-rest-api/trunk
- Files:
-
- 1 added
- 3 edited
-
.gitignore (added)
-
includes/rest-api/wpem-rest-authentication.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wpem-rest-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpem-rest-api/trunk/includes/rest-api/wpem-rest-authentication.php
r2980102 r3033558 657 657 $wpdb->prepare( 658 658 " 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 660 660 FROM {$wpdb->prefix}wpem_rest_api_keys 661 661 WHERE app_key = %s … … 664 664 ) 665 665 ); 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 } 666 671 if( empty( $key_data ) ) 667 672 $key_data = array( 'wpem_rest_authentication_error', __( 'Invalid APP ID.', 'wpem-rest-api' ), array( 'status' => 401 ) ); -
wpem-rest-api/trunk/readme.txt
r2980102 r3033558 6 6 Requires at least: 4.1 7 7 Tested up to: 6.2.2 8 Stable tag: 1.0. 48 Stable tag: 1.0.5 9 9 Requires PHP: 5.6 10 10 License: GPLv3 … … 120 120 == Changelog == 121 121 122 123 = 1.0.5 [ 9th Feb 2023 ] = 124 125 Fixed : Remove a message from the App branding page. 126 Added : API key expiry status is added. 127 122 128 = 1.0.4 [ 17th Oct 2023 ] = 123 129 -
wpem-rest-api/trunk/wpem-rest-api.php
r2980102 r3033558 10 10 * Text Domain: wpem-rest-api 11 11 * Domain Path: /languages 12 * Version: 1.0. 412 * Version: 1.0.5 13 13 * Since: 1.0.0 14 14 * … … 41 41 42 42 // Define constants 43 define( 'WPEM_REST_API_VERSION', '1.0. 4' );43 define( 'WPEM_REST_API_VERSION', '1.0.5' ); 44 44 define( 'WPEM_REST_API_FILE', __FILE__ ); 45 45 define( 'WPEM_REST_API_PLUGIN_DIR', untrailingslashit( plugin_dir_path(__FILE__ ) ) );
Note: See TracChangeset
for help on using the changeset viewer.