Changes between Initial Version and Version 1 of Ticket #22587, comment 11
- Timestamp:
- 11/26/2012 03:21:37 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22587, comment 11
initial v1 1 Just looking further into this. In wp-admin/includes/media.php, this filter is again used. If you do use the correct helper function __return_empty_array, you are presented with a myriad of errors and issues. This is because `$out` is not defined beforehand and is assumed that it will be populated with image sizes. There should be a check to ensure $out is actually set and not empty before even creating the Size label and associated input fields.1 Just looking further into this. In wp-admin/includes/media.php, this filter is again used. If you do use the correct helper function `__return_empty_array`, you are presented with a myriad of errors and issues. This is because `$out` is not defined beforehand and is assumed that it will be populated with image sizes. There should be a check to ensure $out is actually set and not empty before even creating the Size label and associated input fields.