johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 9 forks source link

Search Regex Error #157

Closed sohho888 closed 1 month ago

sohho888 commented 1 year ago
Plugin: 2.4
WordPress: 5.8.2 (single)
PHP: 7.4.30 256M 120s
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
JavaScript: https://www.polyanka-perevod.ru/wp-content/plugins/search-regex/search-regex.js
REST API: /wp-json/
Query: ?page=search-regex.php&searchphrase=http%3A%2F%2F&searchflags%5B%5D=case&searchflags%5B%5D=regex&source%5B%5D=post&source%5B%5D=page&source%5B%5D=attachment&source%5B%5D=revision

Action: /wp-json/search-regex/v1/preset/undefined/ POST
Params: {"searchPhrase":"http://","searchFlags":["case","regex"],"source":["post","page","attachment","revision"],"sourceFlags":[],"replacement":"https://","perPage":25}
Code: 400 Bad Request

Error: Отсутствует параметр: name (rest_missing_callback_param)
Raw: {"code":"rest_missing_callback_param","message":"\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440: name","data":{"status":400,"params":["name"]}}