Changeset 2777043
- Timestamp:
- 08/29/2022 08:27:09 AM (4 years ago)
- Location:
- cloudtables/trunk
- Files:
-
- 3 edited
-
cloudtables.php (modified) (3 diffs)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cloudtables/trunk/cloudtables.php
r2776279 r2777043 7 7 * Requires PHP: 5.4 8 8 * Author: SpryMedia Ltd 9 * Version: 1.2. 09 * Version: 1.2.1 10 10 * License: GPLv2 or later 11 11 */ … … 424 424 * Get a CloudTables API instance 425 425 */ 426 private function _api_inst($apikey = null) {426 private function _api_inst($apikeyAttr = null) { 427 427 $options = get_option( 'cloudtables_option_name' ); 428 428 $subdomain = isset($options['subdomain']) … … 455 455 } 456 456 457 if ($apikey === null) { 458 if (current_user_can( 'edit_posts' )) { 459 $active_key = isset($options['apikey_editor']) 460 ? $options['apikey_editor'] 461 : ''; 462 } 463 else { 464 $active_key = isset($options['apikey']) 465 ? $options['apikey'] 466 : ''; 467 } 457 if (! $apikeyAttr) { 458 $active_key = current_user_can( 'edit_posts' ) 459 ? $apikey_editor 460 : $apikey; 468 461 } 469 462 else { 470 $active_key = $apikey ;463 $active_key = $apikeyAttr; 471 464 } 472 465 -
cloudtables/trunk/package.json
r2776279 r2777043 1 1 { 2 2 "name": "cloudtables-wordpress", 3 "version": "1.2. 0",3 "version": "1.2.1", 4 4 "description": "CloudTables easy integration plug-in for WordPress", 5 5 "main": "block.js", -
cloudtables/trunk/readme.txt
r2776279 r2777043 3 3 Requires at least: 5.0 4 4 Tested up to: 6.0 5 Stable tag: 1.2. 05 Stable tag: 1.2.1 6 6 Requires PHP: 5.5.0 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.