diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/includes/class-walker-category-checklist.php --- a/wp/wp-admin/includes/class-walker-category-checklist.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/includes/class-walker-category-checklist.php Mon Oct 14 18:28:13 2019 +0200 @@ -18,7 +18,10 @@ */ class Walker_Category_Checklist extends Walker { public $tree_type = 'category'; - public $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); //TODO: decouple this + public $db_fields = array( + 'parent' => 'parent', + 'id' => 'term_id', + ); //TODO: decouple this /** * Starts the list before the elements are added. @@ -32,7 +35,7 @@ * @param array $args An array of arguments. @see wp_terms_checklist() */ public function start_lvl( &$output, $depth = 0, $args = array() ) { - $indent = str_repeat("\t", $depth); + $indent = str_repeat( "\t", $depth ); $output .= "$indent\n"; } @@ -79,13 +82,13 @@ } $args['popular_cats'] = empty( $args['popular_cats'] ) ? array() : $args['popular_cats']; - $class = in_array( $category->term_id, $args['popular_cats'] ) ? ' class="popular-category"' : ''; + $class = in_array( $category->term_id, $args['popular_cats'] ) ? ' class="popular-category"' : ''; $args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats']; if ( ! empty( $args['list_only'] ) ) { $aria_checked = 'false'; - $inner_class = 'category'; + $inner_class = 'category'; if ( in_array( $category->term_id, $args['selected_cats'] ) ) { $inner_class .= ' selected'; @@ -100,7 +103,7 @@ } else { /** This filter is documented in wp-includes/category-template.php */ $output .= "\n
  • " . - '';