WordPress.org

Make WordPress Core

Ticket #7000: 7000.002.diff

File 7000.002.diff, 608 bytes (added by AaronCampbell, 10 years ago)

Adds filter for $args

  • branches/2.6/wp-admin/includes/template.php

     
    212212                $categories = get_categories('get=all');
    213213        }
    214214
     215        $args = apply_filters('wp_category_checklist', $args);
     216
    215217        // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache)
    216218        $checked_categories = array();
    217219        for ( $i = 0; isset($categories[$i]); $i++ ) {