1111 * Plugin URI: https://github.com/WP-API/jwt-auth
1212 * Description: Feature plugin to bring JSON Web Token REST API authentication to Core
1313 * Version: 0.1
14- * Author: XWP, and contributors
14+ * Author: WP-API
1515 * Author URI: https://github.com/WP-API/jwt-auth/graphs/contributors
1616 * Text Domain: jwt-auth
1717 * License: GPL-2.0+
1818 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1919 * GitHub Plugin URI: https://github.com/WP-API/jwt-auth
20- * Requires PHP: 5.3.0
20+ * Requires PHP: 5.6.20
2121 * Requires WP: 4.4.0
2222 */
2323
2626define ( 'JWT_AUTH_VERSION ' , '0.1 ' );
2727
2828/**
29- * Requires running PHP 5.3 or above.
29+ * Requires running PHP 5.6.20 or above.
3030 *
3131 * @since 0.1
3232 * @codeCoverageIgnore
3333 */
3434function jwt_auth_version_check () {
35-
36- if ( version_compare ( PHP_VERSION , '5.3 ' , '< ' ) ) {
35+ if ( version_compare ( PHP_VERSION , '5.6.20 ' , '< ' ) ) {
3736 deactivate_plugins ( plugin_basename ( __FILE__ ) );
38- wp_die ( esc_html__ ( 'The JWT Auth plugin requires PHP Version 5.3 or above. ' , 'jwt-auth ' ) );
37+ wp_die ( esc_html__ ( 'The JWT Auth plugin requires PHP Version 5.6.20 or above. ' , 'jwt-auth ' ) );
3938 }
4039}
4140add_action ( 'admin_init ' , 'jwt_auth_version_check ' );
@@ -47,18 +46,18 @@ function jwt_auth_version_check() {
4746 */
4847function jwt_auth_loader () {
4948
50- /** JWT Classes */
51- foreach ( glob ( JWT_AUTH_PLUGIN_DIR . '/wp-includes/rest-api/auth/ jwt/*.php ' ) as $ filename ) {
49+ // JWT Classes.
50+ foreach ( glob ( JWT_AUTH_PLUGIN_DIR . '/wp-includes/php- jwt/*.php ' ) as $ filename ) {
5251 require_once $ filename ;
5352 }
5453
55- /** WP_REST_Token Class */
54+ // WP_REST_Token Class.
5655 require_once JWT_AUTH_PLUGIN_DIR . '/wp-includes/rest-api/auth/class-wp-rest-token.php ' ;
5756
58- /** WP_REST_Key_Pair Class */
57+ // WP_REST_Key_Pair Class.
5958 require_once JWT_AUTH_PLUGIN_DIR . '/wp-includes/rest-api/auth/class-wp-rest-key-pair.php ' ;
6059
61- /** WP_Key_Pair_List_Table Class */
60+ // WP_Key_Pair_List_Table Class.
6261 require_once JWT_AUTH_PLUGIN_DIR . '/wp-admin/includes/class-wp-key-pair-list-table.php ' ;
6362
6463 // Initialize JSON Web Tokens.
0 commit comments