Changeset 3795707 for wpremote/trunk/protect/request.php
- Timestamp:
- 11/11/2026 05:46:47 AM (14 hours ago)
- File:
-
- 1 edited
-
wpremote/trunk/protect/request.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpremote/trunk/protect/request.php
r3775063 r3795707 3 3 if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit; 4 4 5 if (!class_exists('WPRProtectRequest_V68 1')) :6 class WPRProtectRequest_V68 1{5 if (!class_exists('WPRProtectRequest_V683')) : 6 class WPRProtectRequest_V683 { 7 7 public $ip; 8 8 public $host = ''; … … 20 20 public $files; 21 21 public $respcode; 22 public $status = WPRProtectRequest_V68 1::STATUS_ALLOWED;23 public $category = WPRProtectRequest_V68 1::CATEGORY_NORMAL;22 public $status = WPRProtectRequest_V683::STATUS_ALLOWED; 23 public $category = WPRProtectRequest_V683::CATEGORY_NORMAL; 24 24 25 25 public $wp_user; … … 60 60 61 61 public function __construct($ip_header, $config) { 62 $this->ip = WPRProtectUtils_V68 1::getIP($ip_header);62 $this->ip = WPRProtectUtils_V683::getIP($ip_header); 63 63 $this->timestamp = time(); 64 64 $this->get_params = $_GET; // phpcs:ignore WordPress.Security.NonceVerification.Recommended … … 142 142 public static function blacklistedCategories() { 143 143 return array( 144 WPRProtectRequest_V68 1::CATEGORY_BOT_BLOCKED,145 WPRProtectRequest_V68 1::CATEGORY_COUNTRY_BLOCKED,146 WPRProtectRequest_V68 1::CATEGORY_USER_BLACKLISTED,147 WPRProtectRequest_V68 1::CATEGORY_GLOBAL_BOT_BLOCKED144 WPRProtectRequest_V683::CATEGORY_BOT_BLOCKED, 145 WPRProtectRequest_V683::CATEGORY_COUNTRY_BLOCKED, 146 WPRProtectRequest_V683::CATEGORY_USER_BLACKLISTED, 147 WPRProtectRequest_V683::CATEGORY_GLOBAL_BOT_BLOCKED 148 148 ); 149 149 } 150 150 151 151 public static function whitelistedCategories() { 152 return array(WPRProtectRequest_V68 1::CATEGORY_WHITELISTED);152 return array(WPRProtectRequest_V683::CATEGORY_WHITELISTED); 153 153 } 154 154 … … 488 488 } 489 489 490 $_json_params = WPRProtectUtils_V68 1::safeDecodeJSON(490 $_json_params = WPRProtectUtils_V683::safeDecodeJSON( 491 491 $this->raw_body, 492 492 true,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)