Opened 2 years ago
Closed 22 months ago
#56810 closed defect (bug) (fixed)
Wrong doc for block_editor_rest_api_preload()
Reported by: | Chouby | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Editor | Keywords: | has-patch commit |
Focuses: | docs | Cc: |
Description
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 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
.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Thanks for spotting this, and for the patch. Looks good to me, marking as ready for
commit
.