Commit a8b8710
committed
Media: Fix animated GIF to video conversion module loading.
Fix an issue with animated GIF conversion where the conversion worker could not be resolved from the script modules import map. `wp_set_client_side_media_processing_flag()` re-declared the `wp-upload-media` module dependencies via `WP_Scripts::add_data()`, which overwrites rather than merges, wiping the `@wordpress/video-conversion/worker` entry already registered from the packages asset file.
Additionally, only a minified build of the video-conversion worker is shipped, so with `SCRIPT_DEBUG` enabled the import map pointed at a non-existent `worker.js`. The always-minified exception in `wp_default_script_modules()` is extended from the vips modules to also cover `video-conversion/worker.js`.
Follow-up to [62428].
Props andrewserong, swissspidy.
Fixes #65664.
git-svn-id: https://develop.svn.wordpress.org/trunk@62807 602fd350-edb4-49c9-b593-d223f7449a821 parent 8946881 commit a8b8710
4 files changed
Lines changed: 94 additions & 14 deletions
File tree
- src/wp-includes
- tests/phpunit/tests
- media
- script-modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6608 | 6608 | | |
6609 | 6609 | | |
6610 | 6610 | | |
6611 | | - | |
6612 | | - | |
6613 | | - | |
6614 | | - | |
6615 | | - | |
6616 | | - | |
6617 | | - | |
6618 | | - | |
6619 | | - | |
6620 | | - | |
6621 | | - | |
6622 | 6611 | | |
6623 | 6612 | | |
6624 | 6613 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
318 | 364 | | |
319 | 365 | | |
320 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1850 | 1850 | | |
1851 | 1851 | | |
1852 | 1852 | | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1853 | 1897 | | |
1854 | 1898 | | |
1855 | 1899 | | |
| |||
0 commit comments