WordPress.org

Make WordPress Core

Ticket #35250: 35250.diff

File 35250.diff, 603 bytes (added by MikeSchinkel, 4 years ago)

Adds 'get_taxonomies' filter

  • wp-includes/taxonomy.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    152152
    153153        $field = ('names' == $output) ? 'name' : false;
    154154
    155         return wp_filter_object_list($wp_taxonomies, $args, $operator, $field);
     155        $taxonomies = wp_filter_object_list( $wp_taxonomies, $args, $operator, $field );
     156
     157        return apply_filters( 'get_taxonomies', $taxonomies, $args, $output, $operator );
    156158}
    157159
    158160/**