Business Profile - Version 2.0.3

Version Description

(2020-02-14) = - Adds in a few more is_object checks to counter the command line interface installation not calling things in the correct order

Download this release

Release Info

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

Code changes from version 2.0.2 to 2.0.3

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.2
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.3
7
  * Author: Five Star Plugins
8
  * Author URI: https://www.fivestarplugins.com
9
  * License: GPLv3
includes/class-integrations.php CHANGED
@@ -40,6 +40,8 @@ if ( ! class_exists( 'bpfwpIntegrations' ) ) :
40
  */
41
  public function check_for_articles_rich_snippets_change( $val ) {
42
  global $bpfwp_controller;
 
 
43
 
44
  // WooCommerce integration has been turned off
45
  if ( empty( $val['article-rich-snippets'] ) and $bpfwp_controller->settings->get_setting( 'article-rich-snippets' ) ) {
@@ -113,6 +115,8 @@ if ( ! class_exists( 'bpfwpIntegrations' ) ) :
113
  */
114
  public function check_for_wc_integration_change( $val ) {
115
  global $bpfwp_controller;
 
 
116
 
117
  // WooCommerce integration has been turned off
118
  if ( empty( $val['woocommerce-integration'] ) and $bpfwp_controller->settings->get_setting( 'woocommerce-integration' ) ) {
40
  */
41
  public function check_for_articles_rich_snippets_change( $val ) {
42
  global $bpfwp_controller;
43
+
44
+ if ( ! is_object($bpfwp_controller) ) { return; }
45
 
46
  // WooCommerce integration has been turned off
47
  if ( empty( $val['article-rich-snippets'] ) and $bpfwp_controller->settings->get_setting( 'article-rich-snippets' ) ) {
115
  */
116
  public function check_for_wc_integration_change( $val ) {
117
  global $bpfwp_controller;
118
+
119
+ if ( ! is_object($bpfwp_controller) ) { return; }
120
 
121
  // WooCommerce integration has been turned off
122
  if ( empty( $val['woocommerce-integration'] ) and $bpfwp_controller->settings->get_setting( 'woocommerce-integration' ) ) {
includes/class-permissions.php CHANGED
@@ -3,7 +3,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
3
 
4
  if ( !class_exists( 'bpfwpPermissions' ) ) {
5
  /**
6
- * Class to handle plugin permissions for Restaurant Reservations
7
  *
8
  * @since 2.0.0
9
  */
3
 
4
  if ( !class_exists( 'bpfwpPermissions' ) ) {
5
  /**
6
+ * Class to handle plugin permissions for Business Profile
7
  *
8
  * @since 2.0.0
9
  */
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.2 (2020-02-04) =
191
  - Adds in an "if exists" check before checking the settings values
192
 
187
 
188
  == Changelog ==
189
 
190
+ = 2.0.3 (2020-02-14) =
191
+ - Adds in a few more is_object checks to counter the command line interface installation not calling things in the correct order
192
+
193
  = 2.0.2 (2020-02-04) =
194
  - Adds in an "if exists" check before checking the settings values
195