From 95c7b7903e191364df6aadee9913dea1e9e1dca1 Mon Sep 17 00:00:00 2001 From: Akshit Sethi Date: Tue, 21 Jul 2020 02:57:59 +0530 Subject: [PATCH] Fix class constants issue (#16) * Remove public visibility for declaring const variables * Add to changelog --- Makefile | 2 +- src/index.php | 16 ++++++++-------- src/readme.txt | 5 ++++- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 36554c9..662aa95 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := 1.2.5 +VERSION := 1.2.6 PLUGINSLUG := spiderblocker SRCPATH := $(shell pwd)/src diff --git a/src/index.php b/src/index.php index 17a9b78..f6ddc2e 100644 --- a/src/index.php +++ b/src/index.php @@ -24,42 +24,42 @@ class SpiderBlocker { /** * @var string */ - public const PLUGIN_NAME = 'Spider Blocker'; + const PLUGIN_NAME = 'Spider Blocker'; /** * @var string */ - public const PLUGIN_BASE = 'spiderblocker/index.php'; + const PLUGIN_BASE = 'spiderblocker/index.php'; /** * @var string */ - public const PLUGIN_VERSION = '@##VERSION##@'; + const PLUGIN_VERSION = '@##VERSION##@'; /** * @var string */ - public const MINIMUM_PHP_VERSION = '5.6'; + const MINIMUM_PHP_VERSION = '5.6'; /** * @var string */ - public const MINIMUM_WP_VERSION = '4.2.0'; + const MINIMUM_WP_VERSION = '4.2.0'; /** * @var string */ - public const OPTIONNAME = 'Niteoweb.SpiderBlocker.Bots'; + const OPTIONNAME = 'Niteoweb.SpiderBlocker.Bots'; /** * @var string */ - public const NONCE = 'Niteoweb.SpiderBlocker.Nonce'; + const NONCE = 'Niteoweb.SpiderBlocker.Nonce'; /** * @var string */ - public const CHECKHOOK = 'Niteoweb.SpiderBlocker.CheckHook'; + const CHECKHOOK = 'Niteoweb.SpiderBlocker.CheckHook'; /** * @var array diff --git a/src/readme.txt b/src/readme.txt index e30e298..650bb05 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -3,7 +3,7 @@ Contributors: niteoweb Tags: seo, block, bots, htaccess, apache, secure Requires at least: 4.0 Tested up to: 5.4.2 -Stable tag: 1.2.5 +Stable tag: 1.2.6 SpiderBlocker will block most common bots that consume bandwidth and slow down your server. @@ -32,6 +32,9 @@ with Apache server and mod_rewrite enabled. == Changelog == += v1.2.6 = +- Fix issue with class constants + = v1.2.5 = - Visual fixes and code clean-up - Added support for LiteSpeed server