Url zu admin-ajax.php
-
Hallo,
bin gerade auf ein Problem beim Update auf v2.0.2 gestoßen.
Der Express-Checkout-Button geht nicht, wenn WordPress in einem Unterverzeichnis liegt.
AssetsManager.php:
/** * Build the Express Checkout Data * * @return array */ private function expressCheckoutScriptData() { $data = [ 'validContexts' => AjaxHandler::VALID_CONTEXTS, 'request' => [ 'action' => AjaxHandler::ACTION, // besser: admin_url( 'admin-ajax.php' ) 'ajaxUrl' => home_url('/wp-admin/admin-ajax.php'), ], ]; /** @noinspection AdditionOperationOnArraysInspection */ return $data + $this->smartButtonArguments->toArray(); }Ein Fix wäre toll, danke 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Url zu admin-ajax.php’ is closed to new replies.