Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #17447, comment 27


Ignore:
Timestamp:
05/10/2014 02:19:02 PM (11 years ago)
Author:
engelen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17447, comment 27

    v3 v4  
    771. It applies the filter ''before'' calling `wp_parse_args`, which prevents removing required arguments via the filter (as any missing keys will simply be added via `$defaults`).
    882. The post type name is sanitized earlier on and passed to the filter as the second argument.
    9 3. The filter is only applied to non-built-in post types (i.e. custom post types, post types with an `_builtin` false).
     93. The filter is only applied to non-built-in post types (i.e. custom post types, post types with `_builtin` false).
    1010
    1111As far as post type labels are concerned: these are already filterable in `register_post_type`, as it calls `get_post_type_labels` which has been filterable (`post_type_labels_{$post_type}`) since 3.5.