BBQ: Block Bad Queries - Version 20190501

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.

Download this release

Release Info

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

Code changes from version 20190311 to 20190501

bbq-settings.php CHANGED
@@ -20,6 +20,29 @@ function bbq_options() {
20
  return $bbq_options;
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  function bbq_register_settings() {
24
 
25
  // register_setting( $option_group, $option_name, $sanitize_callback );
20
  return $bbq_options;
21
  }
22
 
23
+ function bbq_check_plugin() {
24
+
25
+ if (class_exists('BBQ_Pro')) {
26
+
27
+ if (is_plugin_active('block-bad-queries/block-bad-queries.php')) {
28
+
29
+ $msg = '<strong>'. esc_html__('Warning:', 'block-bad-queries') .'</strong> ';
30
+ $msg .= esc_html__('Free and Pro versions of BBQ cannot be activated at the same time. ', 'block-bad-queries');
31
+ $msg .= esc_html__('Please return to the ', 'block-bad-queries');
32
+ $msg .= '<a href="'. admin_url('plugins.php') .'">'. esc_html__('WordPress Admin Area', 'block-bad-queries') .'</a> ';
33
+ $msg .= esc_html__('and try again.', 'block-bad-queries');
34
+
35
+ deactivate_plugins(BBQ_FILE);
36
+
37
+ wp_die($msg);
38
+
39
+ }
40
+
41
+ }
42
+
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 );
block-bad-queries.php CHANGED
@@ -10,10 +10,10 @@
10
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
11
  Donate link: https://monzillamedia.com/donate.html
12
  Requires at least: 4.1
13
- Tested up to: 5.1
14
- Stable tag: 20190311
15
- Version: 20190311
16
- Requires PHP: 5.2
17
  Text Domain: block-bad-queries
18
  Domain Path: /languages
19
  License: GPLv2 or later
@@ -38,7 +38,7 @@
38
 
39
  if (!defined('ABSPATH')) die();
40
 
41
- if (!defined('BBQ_VERSION')) define('BBQ_VERSION', '20190311');
42
  if (!defined('BBQ_FILE')) define('BBQ_FILE', plugin_basename(__FILE__));
43
  if (!defined('BBQ_DIR')) define('BBQ_DIR', plugin_dir_path(__FILE__));
44
  if (!defined('BBQ_URL')) define('BBQ_URL', plugin_dir_url(__FILE__));
10
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
11
  Donate link: https://monzillamedia.com/donate.html
12
  Requires at least: 4.1
13
+ Tested up to: 5.2
14
+ Stable tag: 20190501
15
+ Version: 20190501
16
+ Requires PHP: 5.6.20
17
  Text Domain: block-bad-queries
18
  Domain Path: /languages
19
  License: GPLv2 or later
38
 
39
  if (!defined('ABSPATH')) die();
40
 
41
+ if (!defined('BBQ_VERSION')) define('BBQ_VERSION', '20190501');
42
  if (!defined('BBQ_FILE')) define('BBQ_FILE', plugin_basename(__FILE__));
43
  if (!defined('BBQ_DIR')) define('BBQ_DIR', plugin_dir_path(__FILE__));
44
  if (!defined('BBQ_URL')) define('BBQ_URL', plugin_dir_url(__FILE__));
languages/block-bad-queries.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2019-03-12 00:01+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -15,82 +15,102 @@ msgstr ""
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
  #: bbq-settings.php:29
18
- msgid "Plugin Information"
 
 
 
 
 
 
 
 
19
  msgstr ""
20
 
21
  #: bbq-settings.php:32
 
 
 
 
 
 
 
 
 
 
 
 
22
  msgid "BBQ Version"
23
  msgstr ""
24
 
25
- #: bbq-settings.php:34
26
  msgid "Upgrade to BBQ Pro"
27
  msgstr ""
28
 
29
- #: bbq-settings.php:49
30
  msgid "Thanks for using the free version of "
31
  msgstr ""
32
 
33
  #. Name of the plugin
34
- #: bbq-settings.php:50
35
  msgid "Block Bad Queries (BBQ)"
36
  msgstr ""
37
 
38
- #: bbq-settings.php:51
39
  msgid ""
40
  "The free version is completely plug-&amp;-play, protecting your site "
41
  "automatically with no settings required."
42
  msgstr ""
43
 
44
- #: bbq-settings.php:58
45
  msgid ""
46
  "Upgrade your site security with advanced protection and complete control. "
47
  msgstr ""
48
 
49
- #: bbq-settings.php:59
50
  msgid "BBQ Pro: Advanced WordPress Firewall"
51
  msgstr ""
52
 
53
- #: bbq-settings.php:64
54
  msgid "Get BBQ Pro &raquo;"
55
  msgstr ""
56
 
57
- #: bbq-settings.php:92
58
  msgid "Visit the BBQ plugin page"
59
  msgstr ""
60
 
61
- #: bbq-settings.php:93
62
  msgid "Settings"
63
  msgstr ""
64
 
65
- #: bbq-settings.php:104
66
  msgid "Get BBQ Pro for advanced protection"
67
  msgstr ""
68
 
69
- #: bbq-settings.php:105
70
  msgid "Go&nbsp;Pro"
71
  msgstr ""
72
 
73
- #: bbq-settings.php:124
74
  msgid "Plugin Homepage"
75
  msgstr ""
76
 
77
- #: bbq-settings.php:125
78
  msgid "Homepage"
79
  msgstr ""
80
 
81
- #: bbq-settings.php:130
82
  msgid "Click here to rate and review this plugin at WordPress.org"
83
  msgstr ""
84
 
85
- #: bbq-settings.php:131
86
  msgid "Rate this plugin&nbsp;&raquo;"
87
  msgstr ""
88
 
89
- #: bbq-settings.php:144
90
  msgid "BBQ Firewall"
91
  msgstr ""
92
 
93
- #: bbq-settings.php:155
94
  msgid "Block Bad Queries"
95
  msgstr ""
96
 
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2019-05-01 21:17+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
  #: bbq-settings.php:29
18
+ msgid "Warning:"
19
+ msgstr ""
20
+
21
+ #: bbq-settings.php:30
22
+ msgid "Free and Pro versions of BBQ cannot be activated at the same time. "
23
+ msgstr ""
24
+
25
+ #: bbq-settings.php:31
26
+ msgid "Please return to the "
27
  msgstr ""
28
 
29
  #: bbq-settings.php:32
30
+ msgid "WordPress Admin Area"
31
+ msgstr ""
32
+
33
+ #: bbq-settings.php:33
34
+ msgid "and try again."
35
+ msgstr ""
36
+
37
+ #: bbq-settings.php:52
38
+ msgid "Plugin Information"
39
+ msgstr ""
40
+
41
+ #: bbq-settings.php:55
42
  msgid "BBQ Version"
43
  msgstr ""
44
 
45
+ #: bbq-settings.php:57
46
  msgid "Upgrade to BBQ Pro"
47
  msgstr ""
48
 
49
+ #: bbq-settings.php:72
50
  msgid "Thanks for using the free version of "
51
  msgstr ""
52
 
53
  #. Name of the plugin
54
+ #: bbq-settings.php:73
55
  msgid "Block Bad Queries (BBQ)"
56
  msgstr ""
57
 
58
+ #: bbq-settings.php:74
59
  msgid ""
60
  "The free version is completely plug-&amp;-play, protecting your site "
61
  "automatically with no settings required."
62
  msgstr ""
63
 
64
+ #: bbq-settings.php:81
65
  msgid ""
66
  "Upgrade your site security with advanced protection and complete control. "
67
  msgstr ""
68
 
69
+ #: bbq-settings.php:82
70
  msgid "BBQ Pro: Advanced WordPress Firewall"
71
  msgstr ""
72
 
73
+ #: bbq-settings.php:87
74
  msgid "Get BBQ Pro &raquo;"
75
  msgstr ""
76
 
77
+ #: bbq-settings.php:115
78
  msgid "Visit the BBQ plugin page"
79
  msgstr ""
80
 
81
+ #: bbq-settings.php:116
82
  msgid "Settings"
83
  msgstr ""
84
 
85
+ #: bbq-settings.php:127
86
  msgid "Get BBQ Pro for advanced protection"
87
  msgstr ""
88
 
89
+ #: bbq-settings.php:128
90
  msgid "Go&nbsp;Pro"
91
  msgstr ""
92
 
93
+ #: bbq-settings.php:147
94
  msgid "Plugin Homepage"
95
  msgstr ""
96
 
97
+ #: bbq-settings.php:148
98
  msgid "Homepage"
99
  msgstr ""
100
 
101
+ #: bbq-settings.php:153
102
  msgid "Click here to rate and review this plugin at WordPress.org"
103
  msgstr ""
104
 
105
+ #: bbq-settings.php:154
106
  msgid "Rate this plugin&nbsp;&raquo;"
107
  msgstr ""
108
 
109
+ #: bbq-settings.php:167
110
  msgid "BBQ Firewall"
111
  msgstr ""
112
 
113
+ #: bbq-settings.php:178
114
  msgid "Block Bad Queries"
115
  msgstr ""
116
 
readme.txt CHANGED
@@ -10,10 +10,10 @@ Author URI: https://plugin-planet.com/
10
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
11
  Donate link: https://monzillamedia.com/donate.html
12
  Requires at least: 4.1
13
- Tested up to: 5.1
14
- Stable tag: 20190311
15
- Version: 20190311
16
- Requires PHP: 5.2
17
  Text Domain: block-bad-queries
18
  Domain Path: /languages
19
  License: GPLv2 or later
@@ -199,6 +199,13 @@ Links, tweets and likes also appreciated. Thank you! :)
199
  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!
200
 
201
 
 
 
 
 
 
 
 
202
  **2019/03/11**
203
 
204
  * Improves function `bbq_action_links()`
10
  Contributors: specialk, aldolat, WpBlogHost, jameswilkes, juliobox, lernerconsult
11
  Donate link: https://monzillamedia.com/donate.html
12
  Requires at least: 4.1
13
+ Tested up to: 5.2
14
+ Stable tag: 20190501
15
+ Version: 20190501
16
+ Requires PHP: 5.6.20
17
  Text Domain: block-bad-queries
18
  Domain Path: /languages
19
  License: GPLv2 or later
199
  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!
200
 
201
 
202
+ **2019/05/01**
203
+
204
+ * Bumps [minimum PHP version](https://codex.wordpress.org/Template:Server_requirements) to 5.6.20
205
+ * Adds activation check if BBQ Pro is active
206
+ * Updates default translation template
207
+ * Tests on WordPress 5.2
208
+
209
  **2019/03/11**
210
 
211
  * Improves function `bbq_action_links()`