WordPress.org

Make WordPress Core

Ticket #4947: 4947.diff

File 4947.diff, 466 bytes (added by mdawaffe, 7 years ago)
  • wp-includes/category.php

     
    2020                $taxonomy = 'link_category'; 
    2121        $categories = get_terms($taxonomy, $args); 
    2222 
    23         foreach ( $categories as $category ) 
    24                 _make_cat_compat($category); 
     23        foreach ( array_keys($categories) as $k ) 
     24                _make_cat_compat($categories[$k]); 
    2525 
    2626        return $categories; 
    2727}