Changes between Initial Version and Version 1 of Ticket #50870, comment 15
- Timestamp:
- 11/12/2020 08:16:16 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50870, comment 15
initial v1 3 3 Please test this patch **very carefully** because in order to get it to work on the themes screen I had to change the data that is passed to the JS (via `wp_localize_script()` in `WP_MS_Themes_List_Table::prepare_items()`). 4 4 5 In 5.5, only the counts of themes in each status (e.g., `disabled`, 'upgrade`, etc) was passed to the JS; whereas `WP_Plugins_List_Table::prepare_items()` passes an array of plugins with each status. This patch does the same for themes...and the JS in `wp.updates.deleteThemeSuccess()` has been adjusted accordingly.5 In 5.5, only the counts of themes in each status (e.g., `disabled`, `upgrade`, etc) was passed to the JS; whereas `WP_Plugins_List_Table::prepare_items()` passes an array of plugins with each status. This patch does the same for themes...and the JS in `wp.updates.deleteThemeSuccess()` has been adjusted accordingly. 6 6 7 7 The patch also updates the DocBlock at the head of the JS to mention `settings.{plugins,themes}['auto-update-{enabled,disabled}']` which was never done in 5.5.