Business Profile - Version 2.1.7

Version Description

(2022-01-14) = - Added capability check to the walkthrough AJAX actions.

Download this release

Release Info

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

Code changes from version 2.1.6 to 2.1.7

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.1.6
7
  * Author: Five Star Plugins
8
  * Author URI: https://www.fivestarplugins.com
9
  * License: GPLv3
@@ -123,7 +123,7 @@ if ( ! class_exists( 'bpfwpInit', false ) ) :
123
  define( 'BPFWP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
124
  define( 'BPFWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
125
  define( 'BPFWP_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
126
- define( 'BPFWP_VERSION', '2.1.6' );
127
  }
128
 
129
  /**
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.1.7
7
  * Author: Five Star Plugins
8
  * Author URI: https://www.fivestarplugins.com
9
  * License: GPLv3
123
  define( 'BPFWP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
124
  define( 'BPFWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
125
  define( 'BPFWP_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
126
+ define( 'BPFWP_VERSION', '2.1.7' );
127
  }
128
 
129
  /**
includes/class-installation-walkthrough.php CHANGED
@@ -126,7 +126,7 @@ class bpfwpInstallationWalkthrough {
126
  global $bpfwp_controller;
127
 
128
  // Authenticate request
129
- if ( ! check_ajax_referer( 'bpfwp-getting-started', 'nonce' ) ) {
130
 
131
  bpfwpHelper::admin_nopriv_ajax();
132
  }
@@ -151,7 +151,7 @@ class bpfwpInstallationWalkthrough {
151
  global $bpfwp_controller;
152
 
153
  // Authenticate request
154
- if ( ! check_ajax_referer( 'bpfwp-getting-started', 'nonce' ) ) {
155
 
156
  bpfwpHelper::admin_nopriv_ajax();
157
  }
@@ -171,7 +171,7 @@ class bpfwpInstallationWalkthrough {
171
  global $bpfwp_controller;
172
 
173
  // Authenticate request
174
- if ( ! check_ajax_referer( 'bpfwp-getting-started', 'nonce' ) ) {
175
 
176
  bpfwpHelper::admin_nopriv_ajax();
177
  }
126
  global $bpfwp_controller;
127
 
128
  // Authenticate request
129
+ if ( ! check_ajax_referer( 'bpfwp-getting-started', 'nonce' ) or ! current_user_can( 'manage_options' ) ) {
130
 
131
  bpfwpHelper::admin_nopriv_ajax();
132
  }
151
  global $bpfwp_controller;
152
 
153
  // Authenticate request
154
+ if ( ! check_ajax_referer( 'bpfwp-getting-started', 'nonce' ) or ! current_user_can( 'manage_options' ) ) {
155
 
156
  bpfwpHelper::admin_nopriv_ajax();
157
  }
171
  global $bpfwp_controller;
172
 
173
  // Authenticate request
174
+ if ( ! check_ajax_referer( 'bpfwp-getting-started', 'nonce' ) or ! current_user_can( 'manage_options' ) ) {
175
 
176
  bpfwpHelper::admin_nopriv_ajax();
177
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URL: https://www.fivestarplugins.com/plugins/business-profile/
5
  Requires at Least: 5.3
6
  Tested Up To: 5.8
7
  Tags: business profile, seo, local seo, schema, address, google map, contact, phone, contact card, vcard, contact info, business location, business address, business map, business schema, organization schema, corporation schema, contact schema, address schema, location schema, map schema, business structured data, business microdata, address microdata, location structured data, location microdata, contact shortcode, location shortcode, address shortcode, schema shortcode, gutenberg schema, gutenberg address
8
- Stable tag: 2.1.6
9
  License: GPLv3
10
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -192,6 +192,9 @@ You'll find more help in the [User Guide](http://doc.themeofthecrop.com/plugins/
192
 
193
  == Changelog ==
194
 
 
 
 
195
  = 2.1.6 (2022-01-13) =
196
  - Updated nonces in the plugin admin.
197
  - Updated sanitizing and escaping.
5
  Requires at Least: 5.3
6
  Tested Up To: 5.8
7
  Tags: business profile, seo, local seo, schema, address, google map, contact, phone, contact card, vcard, contact info, business location, business address, business map, business schema, organization schema, corporation schema, contact schema, address schema, location schema, map schema, business structured data, business microdata, address microdata, location structured data, location microdata, contact shortcode, location shortcode, address shortcode, schema shortcode, gutenberg schema, gutenberg address
8
+ Stable tag: 2.1.7
9
  License: GPLv3
10
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
11
 
192
 
193
  == Changelog ==
194
 
195
+ = 2.1.7 (2022-01-14) =
196
+ - Added capability check to the walkthrough AJAX actions.
197
+
198
  = 2.1.6 (2022-01-13) =
199
  - Updated nonces in the plugin admin.
200
  - Updated sanitizing and escaping.