id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 56810 Wrong doc for block_editor_rest_api_preload() Chouby audrasjb "According to the doc, the function `block_editor_rest_api_preload()` is expecting an array of strings as first parameter. It's however not true whent the method request is `OPTIONS`. In this specific case, the preloaded path is an array itself and the path is the first element (index 0) of this array. See for example [https://github.com/WordPress/WordPress/blob/6.0.2/wp-admin/edit-form-blocks.php#L55-L75 this usage] of the function `block_editor_rest_api_preload()`. The same mistake is done for the filter `block_editor_rest_api_preload_paths` and the deprecated filter `block_editor_preload_paths`." defect (bug) closed normal 6.2 Editor 5.8 normal fixed has-patch commit docs