← All changes
|
vendor/wpfluent/framework/src/WPFluent/Http/Route.php
+2
-3
1.4.1
→
1.6.5
View file →
| @@ -205,9 +205,8 @@ | ||
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | 207 | * Map the route to be used in front-end. |
| 208 | 208 | * |
| 209 | - * @param mixed $handler | |
| 210 | 209 | * @return self |
| 211 | 210 | */ |
| 212 | 211 | public function preparefrontendHandlers() |
| 213 | 212 | { |
| @@ -1549,10 +1548,10 @@ | ||
| 1549 | 1548 | * @return boolean |
| 1550 | 1549 | */ |
| 1551 | 1550 | protected function isPolicyHandlerParseable($policyHandler) |
| 1552 | 1551 | { |
| 1553 | - return (strpos($policyHandler, '@') === true | |
| 1554 | - || strpos($policyHandler, '::') === true); | |
| 1552 | + return (strpos($policyHandler, '@') !== false | |
| 1553 | + || strpos($policyHandler, '::') !== false); | |
| 1555 | 1554 | } |
| 1556 | 1555 | |
| 1557 | 1556 | /** |
| 1558 | 1557 | * Default/Fallback policy handler for the route |