Changeset 2744067
- Timestamp:
- 06/17/2022 11:18:05 AM (4 years ago)
- Location:
- fibre/trunk
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
config.php (modified) (1 diff)
-
fibre.php (modified) (1 diff)
-
includes/client.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fibre/trunk
-
Property
svn:ignore
set to
composer.json
phpcs.xml
-
Property
svn:ignore
set to
-
fibre/trunk/config.php
r2184518 r2744067 1 1 <?php 2 2 3 define('FIBRE_CLIENT_VERSION', '1.2 ');3 define('FIBRE_CLIENT_VERSION', '1.2.1'); 4 4 define('FIBRE_CLIENT_PATH', plugin_dir_path(__FILE__)); 5 5 define('FIBRE_CLIENT_BASENAME', plugin_basename(__FILE__)); -
fibre/trunk/fibre.php
r2184518 r2744067 4 4 * Plugin URI: https://fibre.io 5 5 * Description: Fibre Client for the Fibre Platform 6 * Version: 1.2 6 * Version: 1.2.1 7 7 * Author: Wholegrain Digital 8 8 * Author URI: https://www.wholegraindigital.com -
fibre/trunk/includes/client.php
r2184518 r2744067 33 33 'methods' => $method, 34 34 'callback' => '\Fibre\Client\Client::routeHandlerData', 35 'permission_callback' => '\Fibre\Client\Client::isAuthenticated', 35 36 ] 36 37 ); … … 43 44 'methods' => $method, 44 45 'callback' => '\Fibre\Client\Client::routeHandlerUser', 46 'permission_callback' => '\Fibre\Client\Client::isAuthenticated', 45 47 ] 46 48 ); … … 79 81 public static function routeHandlerData() 80 82 { 81 // Check if there is a valid token and if not throw an error82 if (\Fibre\Client\Authentication::authenticate() !== true) {83 return self::authenticationFailed();84 }85 86 83 return self::getData(); 87 84 } … … 89 86 public static function routeHandlerUser() 90 87 { 91 // Check if there is a valid token and if not throw an error92 if (\Fibre\Client\Authentication::authenticate() !== true) {93 return self::authenticationFailed();94 }95 96 88 // Check if an email key was provided 97 89 if (array_key_exists('email', $_POST) !== true) { … … 120 112 121 113 114 public static function isAuthenticated() 115 { 116 // Check if there is a valid token and if not throw an error 117 if (\Fibre\Client\Authentication::authenticate() !== true) { 118 return self::authenticationFailed(); 119 } 120 121 return true; 122 } 123 124 122 125 private static function authenticationFailed() 123 126 { -
fibre/trunk/readme.txt
r2184518 r2744067 8 8 Requires at least: 4.7 9 9 Requires PHP: 5.3 10 Tested up to: 5.2.410 Tested up to: 6.0 11 11 12 12 Manage your WordPress websites remotely and learn what you can improve or fix. … … 44 44 45 45 == Changelog == 46 47 = 1.2.1 = 48 * Fixes incorrect REST API permission callback implimentation 49 * Tested on WP 6.0 46 50 47 51 = 1.2 =
Note: See TracChangeset
for help on using the changeset viewer.