Business Profile - Version 2.0.2

Version Description

(2020-02-04) = - Adds in an "if exists" check before checking the settings values

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Business Profile
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

business-profile.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Five Star Business Profile and Schema
4
  * Plugin URI: https://www.fivestarplugins.com/plugins/business-profile/
5
  * Description: Add schema structured data to any page or post type. Create an SEO friendly contact card with your business info and associated schema. Supports Google Map, opening hours and more.
6
- * Version: 2.0.1
7
  * Author: Five Star Plugins
8
  * Author URI: https://www.fivestarplugins.com
9
  * License: GPLv3
3
  * Plugin Name: Five Star Business Profile and Schema
4
  * Plugin URI: https://www.fivestarplugins.com/plugins/business-profile/
5
  * Description: Add schema structured data to any page or post type. Create an SEO friendly contact card with your business info and associated schema. Supports Google Map, opening hours and more.
6
+ * Version: 2.0.2
7
  * Author: Five Star Plugins
8
  * Author URI: https://www.fivestarplugins.com
9
  * License: GPLv3
includes/class-settings.php CHANGED
@@ -535,7 +535,7 @@ if ( ! class_exists( 'bpfwpSettings' ) ) :
535
  // )
536
  // );
537
 
538
- if ( ! $bpfwp_controller->permissions->check_permission('premium') ) {
539
  $premium_permissions = array(
540
  'disabled' => true,
541
  'disabled_image'=> 'https://www.etoilewebdesign.com/wp-content/uploads/2018/06/Logo-White-Filled40-px.png',
@@ -544,7 +544,7 @@ if ( ! class_exists( 'bpfwpSettings' ) ) :
544
  }
545
  else { $premium_permissions = array(); }
546
 
547
- if ( ! $bpfwp_controller->permissions->check_permission('integrations') ) {
548
  $integrations_permissions = array(
549
  'disabled' => true,
550
  'disabled_image'=> 'https://www.etoilewebdesign.com/wp-content/uploads/2018/06/Logo-White-Filled40-px.png',
@@ -553,7 +553,7 @@ if ( ! class_exists( 'bpfwpSettings' ) ) :
553
  }
554
  else { $integrations_permissions = array(); }
555
 
556
- if ( ! $bpfwp_controller->permissions->check_permission('locations') ) {
557
  $locations_permissions = array(
558
  'disabled' => true,
559
  'disabled_image'=> 'https://www.etoilewebdesign.com/wp-content/uploads/2018/06/Logo-White-Filled40-px.png',
535
  // )
536
  // );
537
 
538
+ if ( ! is_object($bpfwp_controller) or ! $bpfwp_controller->permissions->check_permission('premium') ) {
539
  $premium_permissions = array(
540
  'disabled' => true,
541
  'disabled_image'=> 'https://www.etoilewebdesign.com/wp-content/uploads/2018/06/Logo-White-Filled40-px.png',
544
  }
545
  else { $premium_permissions = array(); }
546
 
547
+ if ( ! is_object($bpfwp_controller) or ! $bpfwp_controller->permissions->check_permission('integrations') ) {
548
  $integrations_permissions = array(
549
  'disabled' => true,
550
  'disabled_image'=> 'https://www.etoilewebdesign.com/wp-content/uploads/2018/06/Logo-White-Filled40-px.png',
553
  }
554
  else { $integrations_permissions = array(); }
555
 
556
+ if ( ! is_object($bpfwp_controller) or ! $bpfwp_controller->permissions->check_permission('locations') ) {
557
  $locations_permissions = array(
558
  'disabled' => true,
559
  'disabled_image'=> 'https://www.etoilewebdesign.com/wp-content/uploads/2018/06/Logo-White-Filled40-px.png',
readme.txt CHANGED
@@ -187,6 +187,9 @@ You'll find more help in the [User Guide](http://doc.themeofthecrop.com/plugins/
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = 2.0.1 (2020-02-03) =
191
  - Moving the multiple locations option back to the Basic settings page (it was accidentally moved to the premium section during the big update)
192
 
187
 
188
  == Changelog ==
189
 
190
+ = 2.0.2 (2020-02-04) =
191
+ - Adds in an "if exists" check before checking the settings values
192
+
193
  = 2.0.1 (2020-02-03) =
194
  - Moving the multiple locations option back to the Basic settings page (it was accidentally moved to the premium section during the big update)
195