Commit 4fade1d
committed
docs: correct the upload validation claims in the GBK processor
Two claims in `isRejectedByFreePlan` were wrong.
The comment said GutenbergKit already validates against the site's real
`allowedMimeTypes` from `/wp-block-editor/v1/settings`. It does not: that
route is provided by the Gutenberg plugin, not WordPress core, so on a
site without the plugin the setting stays null and the editor's check
passes everything through. Images and videos are left to the server.
It also justified the free-plan rejection as beating the server's
"untranslated" error. That error is a core `__()` string and is
translated — to the site's locale, which need not match the app's. Rest
the rejection on what actually holds: it spares an upload certain to fail
and reports it in the app's locale.1 parent f247250 commit 4fade1d
1 file changed
Lines changed: 10 additions & 5 deletions
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
0 commit comments