Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29743, comment 5


Ignore:
Timestamp:
10/27/2014 02:08:59 AM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29743, comment 5

    initial v1  
    11> there is a warning because apply_filters on nav_menu_css_class return null
    22
    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`.
     3I 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()`.
    44
    55But 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.