WordPress.org

Make WordPress Core

Ticket #20054: 20054.2.patch

File 20054.2.patch, 637 bytes (added by husobj, 2 years ago)
  • wp-admin/includes/template.php

     
    121121                $categories = (array) get_terms($taxonomy, array('get' => 'all')); 
    122122        } 
    123123 
    124         if ( $checked_ontop ) { 
     124        if ( apply_filters( 'show_checked_terms_on_top', $checked_ontop, $taxonomy ) ) { 
    125125                // 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) 
    126126                $checked_categories = array(); 
    127127                $keys = array_keys( $categories );