BBQ: Block Bad Queries - Version 20221002

Version Description

To upgrade BBQ, remove old version and replace with new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically. Nothing else needs done.

Note: uninstalling/deleting the plugin via the WP Plugins screen results in the removal of all settings and email data from the WP database.

Download this release

Release Info

Developer specialk
Plugin Icon 128x128 BBQ: Block Bad Queries
Version 20221002
Comparing to
See all releases

Code changes from version 20220517 to 20221002

Files changed (3) hide show
  1. bbq-settings.php +23 -0
  2. block-bad-queries.php +4 -4
  3. readme.txt +34 -26
bbq-settings.php CHANGED
@@ -43,6 +43,29 @@ function bbq_check_plugin() {
43
  }
44
  add_action('admin_init', 'bbq_check_plugin');
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  function bbq_register_settings() {
47
 
48
  // register_setting( $option_group, $option_name, $sanitize_callback );
43
  }
44
  add_action('admin_init', 'bbq_check_plugin');
45
 
46
+ function bbq_admin_footer_text($text) {
47
+
48
+ if (!function_exists('get_current_screen')) require_once ABSPATH .'/wp-admin/includes/screen.php';
49
+
50
+ $screen = get_current_screen();
51
+
52
+ $ids = array('settings_page_bbq_settings');
53
+
54
+ if (isset($screen->id) && apply_filters('bbq_admin_footer_text', in_array($screen->id, $ids))) {
55
+
56
+ $text = __('Like BBQ? Give it a', 'block-bad-queries');
57
+
58
+ $text .= ' <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/support/plugin/block-bad-queries/reviews/?rate=5#new-post">';
59
+
60
+ $text .= __('★★★★★ rating&nbsp;&raquo;', 'block-bad-queries') .'</a>';
61
+
62
+ }
63
+
64
+ return $text;
65
+
66
+ }
67
+ add_filter('admin_footer_text', 'bbq_admin_footer_text', 10, 1);
68
+
69
  function bbq_register_settings() {
70
 
71
  // register_setting( $option_group, $option_name, $sanitize_callback );
block-bad-queries.php CHANGED
@@ -9,9 +9,9 @@
9
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
10
  Donate link: https://monzillamedia.com/donate.html
11
  Requires at least: 4.6
12
- Tested up to: 6.0
13
- Stable tag: 20220517
14
- Version: 20220517
15
  Requires PHP: 5.6.20
16
  Text Domain: block-bad-queries
17
  Domain Path: /languages
@@ -37,7 +37,7 @@
37
 
38
  if (!defined('ABSPATH')) die();
39
 
40
- if (!defined('BBQ_VERSION')) define('BBQ_VERSION', '20220517');
41
  if (!defined('BBQ_FILE')) define('BBQ_FILE', plugin_basename(__FILE__));
42
  if (!defined('BBQ_DIR')) define('BBQ_DIR', plugin_dir_path(__FILE__));
43
  if (!defined('BBQ_URL')) define('BBQ_URL', plugins_url('/block-bad-queries/'));
9
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
10
  Donate link: https://monzillamedia.com/donate.html
11
  Requires at least: 4.6
12
+ Tested up to: 6.1
13
+ Stable tag: 20221002
14
+ Version: 20221002
15
  Requires PHP: 5.6.20
16
  Text Domain: block-bad-queries
17
  Domain Path: /languages
37
 
38
  if (!defined('ABSPATH')) die();
39
 
40
+ if (!defined('BBQ_VERSION')) define('BBQ_VERSION', '20221002');
41
  if (!defined('BBQ_FILE')) define('BBQ_FILE', plugin_basename(__FILE__));
42
  if (!defined('BBQ_DIR')) define('BBQ_DIR', plugin_dir_path(__FILE__));
43
  if (!defined('BBQ_URL')) define('BBQ_URL', plugins_url('/block-bad-queries/'));
readme.txt CHANGED
@@ -9,9 +9,9 @@ Author URI: https://plugin-planet.com/
9
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
10
  Donate link: https://monzillamedia.com/donate.html
11
  Requires at least: 4.6
12
- Tested up to: 6.0
13
- Stable tag: 20220517
14
- Version: 20220517
15
  Requires PHP: 5.6.20
16
  Text Domain: block-bad-queries
17
  Domain Path: /languages
@@ -74,13 +74,36 @@ BBQ provides all the best firewall features:
74
  * Lightweight, fast and flexible
75
 
76
  > For advanced protection and features, check out [BBQ Pro &raquo;](https://plugin-planet.com/bbq-pro/)
 
77
 
78
 
79
  **Privacy**
80
 
81
  This plugin does not collect or store any user data. It does not set any cookies, and it does not connect to any third-party locations. Thus, this plugin does not affect user privacy in any way.
82
 
83
- > BBQ = Block Bad Queries
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
 
86
 
@@ -225,33 +248,18 @@ Send any questions or feedback via my [contact form](https://plugin-planet.com/s
225
 
226
 
227
 
228
- == Support development of this plugin ==
229
-
230
- I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
231
-
232
- * [The Tao of WordPress](https://wp-tao.com/)
233
- * [Digging into WordPress](https://digwp.com/)
234
- * [.htaccess made easy](https://htaccessbook.com/)
235
- * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
236
- * [Wizard's SQL Recipes for WordPress](https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/)
237
-
238
- And/or purchase one of my premium WordPress plugins:
239
-
240
- * [BBQ Pro](https://plugin-planet.com/bbq-pro/) - Super fast WordPress firewall
241
- * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) - Automatically block bad bots
242
- * [Banhammer Pro](https://plugin-planet.com/banhammer-pro/) - Monitor traffic and ban the bad guys
243
- * [GA Google Analytics Pro](https://plugin-planet.com/ga-google-analytics-pro/) - Connect WordPress to Google Analytics
244
- * [USP Pro](https://plugin-planet.com/usp-pro/) - Unlimited front-end forms
245
-
246
- Links, tweets and likes also appreciated. Thank you! :)
247
-
248
-
249
-
250
  == Changelog ==
251
 
252
  If you like BBQ, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/block-bad-queries/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
253
 
254
 
 
 
 
 
 
 
 
255
  **2022/05/17**
256
 
257
  * Removes `.inc` from firewall patterns
9
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
10
  Donate link: https://monzillamedia.com/donate.html
11
  Requires at least: 4.6
12
+ Tested up to: 6.1
13
+ Stable tag: 20221002
14
+ Version: 20221002
15
  Requires PHP: 5.6.20
16
  Text Domain: block-bad-queries
17
  Domain Path: /languages
74
  * Lightweight, fast and flexible
75
 
76
  > For advanced protection and features, check out [BBQ Pro &raquo;](https://plugin-planet.com/bbq-pro/)
77
+ > BBQ = Block Bad Queries
78
 
79
 
80
  **Privacy**
81
 
82
  This plugin does not collect or store any user data. It does not set any cookies, and it does not connect to any third-party locations. Thus, this plugin does not affect user privacy in any way.
83
 
84
+ BBQ Firewall is developed and maintained by [Jeff Starr](https://twitter.com/perishable), 15-year [WordPress developer](https://plugin-planet.com/) and [book author](https://books.perishablepress.com/).
85
+
86
+
87
+ **Support development**
88
+
89
+ I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
90
+
91
+ * [The Tao of WordPress](https://wp-tao.com/)
92
+ * [Digging into WordPress](https://digwp.com/)
93
+ * [.htaccess made easy](https://htaccessbook.com/)
94
+ * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
95
+ * [Wizard's SQL Recipes for WordPress](https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/)
96
+
97
+ And/or purchase one of my premium WordPress plugins:
98
+
99
+ * [BBQ Pro](https://plugin-planet.com/bbq-pro/) - Super fast WordPress firewall
100
+ * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) - Automatically block bad bots
101
+ * [Banhammer Pro](https://plugin-planet.com/banhammer-pro/) - Monitor traffic and ban the bad guys
102
+ * [GA Google Analytics Pro](https://plugin-planet.com/ga-google-analytics-pro/) - Connect WordPress to Google Analytics
103
+ * [Simple Ajax Chat Pro](https://plugin-planet.com/simple-ajax-chat-pro/) - Unlimited chat rooms
104
+ * [USP Pro](https://plugin-planet.com/usp-pro/) - Unlimited front-end forms
105
+
106
+ Links, tweets and likes also appreciated. Thank you! :)
107
 
108
 
109
 
248
 
249
 
250
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  == Changelog ==
252
 
253
  If you like BBQ, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/block-bad-queries/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
254
 
255
 
256
+ **2022/10/02**
257
+
258
+ * Adds custom footer text to plugin settings
259
+ * Improves plugin documentation
260
+ * Updates translation template
261
+ * Tests on WordPress 6.1
262
+
263
  **2022/05/17**
264
 
265
  * Removes `.inc` from firewall patterns