Changes between Initial Version and Version 1 of Ticket #29743, comment 5
- Timestamp:
- 10/27/2014 02:08:59 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29743, comment 5
initial v1 1 1 > there is a warning because apply_filters on nav_menu_css_class return null 2 2 3 I think this should be considered a developer error. If the goal is to remove the classes, `__return_empty_array()` should be used here instead of `__return_null `.3 I think this should be considered a developer error. If the goal is to remove the classes, `__return_empty_array()` should be used here instead of `__return_null()`. 4 4 5 5 But if we're going to keep [30032], we should do the same for `body_class`, `post_class`, `comment_class`, and `page_css_class` filters as well.