Skip to content

Commit eefad07

Browse files
committed
WPAjaxController fix
1 parent 173d439 commit eefad07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/NativeAjax/AbstractWPAjaxController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(?Request $request = null)
3434

3535
// Игонорировать /wp-admin/admin.php. Иначе вызывает ложные срабатывания
3636
// И ошибки.
37-
if ($action && strpos($uri, '/wp-admin/admin.php') === false) {
37+
if ($action && strpos($uri, '/wp-admin/') === false) {
3838
$routeData = WpAjaxInitializer::route($action);
3939

4040
$this->request->attributes->set('methods', $routeData->getMethods());

0 commit comments

Comments
 (0)