Changeset 1970139
- Timestamp:
- 11/06/2018 10:29:50 PM (7 years ago)
- Location:
- wp-emfluence/trunk
- Files:
-
- 3 edited
-
emfluence.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-emfluence/trunk/emfluence.php
r1955191 r1970139 5 5 Description: Easily add forms to your website for contacts to add or update their details in your emfluence Marketing Platform account. 6 6 Author: emfluence Digital Marketing 7 Version: 2.7 7 Version: 2.7.1 8 8 Author URI: https://www.emfluence.com 9 9 Text Domain: emfl_form -
wp-emfluence/trunk/readme.txt
r1955191 r1970139 3 3 Requires at least: 4.0 4 4 Tested up to: 4.9.8 5 Stable tag: 2.7 5 Stable tag: 2.7.1 6 6 Requires PHP: 5.6 7 7 Contributors: emfluencekc, mightyturtle … … 57 57 == Changelog == 58 58 59 = 2.7.1 = 60 * Performance improvement for admins. 61 * Bug fix for some object caches. 62 59 63 = 2.7 = 60 64 * Add setting to redirect after submission success. -
wp-emfluence/trunk/widget.php
r1955191 r1970139 20 20 static function get_groups(){ 21 21 static $groups = NULL; 22 23 22 if( $groups !== NULL ) return $groups; 24 23 24 require_once 'libraries/emfl_platform_api/response_objects/group.class.inc'; 25 25 $cached = wp_cache_get('emfluence:groups'); 26 if(!empty($cached)) $groups = $cached; 27 28 if( $groups !== NULL ) return $groups; 26 $cache_valid = TRUE; 27 if(is_array($cached)) foreach($cached as $group) { 28 $has_required_properties = property_exists($group, 'groupName') && property_exists($group, 'groupID'); 29 if(!$has_required_properties) $cache_valid = FALSE; 30 } 31 if($cache_valid && !empty($cached)) $groups = $cached; 32 if( NULL !== $groups ) return $groups; 29 33 30 34 $options = get_option('emfluence_global'); … … 982 986 } 983 987 $api = emfluence_get_api($options['api_key']); 984 $ping = $api->ping(); 988 static $ping = NULL; 989 if(NULL === $ping) $ping = $api->ping(); 985 990 if( !$ping || !$ping->success ){ 986 991 $output = '<h3>' . __('Authentication Failed') . '</h3>';
Note: See TracChangeset
for help on using the changeset viewer.