forked from Automattic/vip-go-mu-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VIP Request Block: Add function to allow for blocking by partial User…
… Agent string. (Automattic#4001) * Add function to allow for blocking by partial User Agent string. * Add test for blocking by partial User Agent string match * Use strpos() over str_contains for PHP 7.x backwards-compatibility * Fix linting * Use late static binding Co-authored-by: Rebecca Hum <[email protected]>
- Loading branch information
1 parent
b6fd950
commit 90bd992
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters