| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | // phpcs:disable WordPress.Security.EscapeOutput.ExceptionNotEscaped |
| 3 | 3 | if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit; |
| 4 | 4 | |
| 5 | -if (!trait_exists('WPRProtectFWRuleMiscFunc_V672')) : | |
| 6 | -trait WPRProtectFWRuleMiscFunc_V672 { | |
| 5 | +if (!trait_exists('WPRProtectFWRuleMiscFunc_V676')) : | |
| 6 | +trait WPRProtectFWRuleMiscFunc_V676 { | |
| 7 | 7 | private function _rf_isTrue() { |
| 8 | 8 | $args = $this->processRuleFunctionParams( |
| 9 | 9 | 'isTrue', |
| 10 | 10 | func_num_args(), |
| @@ -71,9 +71,9 @@ | ||
| 71 | 71 | ); |
| 72 | 72 | $name = $args[0]; |
| 73 | 73 | |
| 74 | 74 | if (!array_key_exists($name, $this->variables)) { |
| 75 | - throw new WPRProtectRuleError_V672( | |
| 75 | + throw new WPRProtectRuleError_V676( | |
| 76 | 76 | $this->addExState("UndefinedVariableError: " . $name . " is not defined.") |
| 77 | 77 | ); |
| 78 | 78 | } |
| 79 | 79 | |
| @@ -132,9 +132,9 @@ | ||
| 132 | 132 | return false; |
| 133 | 133 | } |
| 134 | 134 | $resp = WPRHelper::safePregMatch((string) $pattern, (string) $subject); |
| 135 | 135 | if ($resp === false) { |
| 136 | - throw new WPRProtectRuleError_V672( | |
| 136 | + throw new WPRProtectRuleError_V676( | |
| 137 | 137 | $this->addExState('BVHelper::safePregMatch' . serialize($subject)) |
| 138 | 138 | ); |
| 139 | 139 | } elseif ($resp > 0) { |
| 140 | 140 | return true; |
| @@ -173,9 +173,9 @@ | ||
| 173 | 173 | return $count; |
| 174 | 174 | } |
| 175 | 175 | $count = preg_match_all((string) $pattern, (string) $subject, $matches); |
| 176 | 176 | if ($count === false) { |
| 177 | - throw new WPRProtectRuleError_V672( | |
| 177 | + throw new WPRProtectRuleError_V676( | |
| 178 | 178 | $this->addExState("preg_match_all: " . serialize($subject)) |
| 179 | 179 | ); |
| 180 | 180 | } |
| 181 | 181 | return $count; |
| @@ -199,9 +199,9 @@ | ||
| 199 | 199 | return $count; |
| 200 | 200 | } |
| 201 | 201 | $count = preg_match_all((string) $pattern, (string) $subject, $matches); |
| 202 | 202 | if ($count === false) { |
| 203 | - throw new WPRProtectRuleError_V672( | |
| 203 | + throw new WPRProtectRuleError_V676( | |
| 204 | 204 | $this->addExState("preg_match_all: " . serialize($subject)) |
| 205 | 205 | ); |
| 206 | 206 | } |
| 207 | 207 | return $count; |