WordPress.org

Make WordPress Core

Ticket #35156: category-template.php.diff

File category-template.php.diff, 717 bytes (added by gblsm, 4 years ago)
  • src/wp-includes/category-template.php

     
    550550                $exclude_tree = array();
    551551
    552552                if ( $r['exclude_tree'] ) {
    553                         $exclude_tree = array_merge( $exclude_tree, (array) $r['exclude_tree'] );
     553                        $exclude_tree = array_merge( $exclude_tree, wp_parse_id_list( $r['exclude_tree'] ) );
    554554                }
    555555
    556556                if ( $r['exclude'] ) {
    557                         $exclude_tree = array_merge( $exclude_tree, (array) $r['exclude'] );
     557                        $exclude_tree = array_merge( $exclude_tree, wp_parse_id_list( $r['exclude'] ) );
    558558                }
    559559
    560560                $r['exclude_tree'] = $exclude_tree;