Changeset 2780283
- Timestamp:
- 09/05/2022 05:35:41 PM (4 years ago)
- Location:
- allkeyshop-affiliate/trunk
- Files:
-
- 3 edited
-
main.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/Controller/Manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
allkeyshop-affiliate/trunk/main.php
r2763492 r2780283 3 3 * Plugin Name: Allkeyshop Affiliate 4 4 * Description: Earn money by adding game prices comparison widgets 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Requires at least: 5.9 7 7 * Requires PHP: 7.0 -
allkeyshop-affiliate/trunk/readme.txt
r2763492 r2780283 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 Stable tag: 1.0. 19 Stable tag: 1.0.2 10 10 11 11 Allkeyshop Widget integration for WordPress -
allkeyshop-affiliate/trunk/src/Controller/Manager.php
r2763492 r2780283 268 268 } 269 269 } 270 271 public function testApiKey() { 272 if (!isset($_POST['apiKey'])) { 273 wp_send_json_error(); 274 } 275 $apiKey = sanitize_text_field($_POST['apiKey']); 276 $data = AffiliateApi::checkApiKey($apiKey); 277 if ($data['success'] === true) { 278 self::_saveApiKey($apiKey, $data['data']['affiliateKey']); 279 wp_send_json_success(); 280 } 281 wp_send_json_error(); 282 } 270 283 }
Note: See TracChangeset
for help on using the changeset viewer.