Skip to content

Commit

Permalink
Fix class constants issue (#16)
Browse files Browse the repository at this point in the history
* Remove public visibility for declaring const variables

* Add to changelog
  • Loading branch information
akshitsethi authored Jul 20, 2020
1 parent 4e80cbc commit 95c7b79
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 1.2.5
VERSION := 1.2.6
PLUGINSLUG := spiderblocker
SRCPATH := $(shell pwd)/src

Expand Down
16 changes: 8 additions & 8 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 95c7b79

Please sign in to comment.