Ticket #36379: 36379.diff
File 36379.diff, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-walker-category-checklist.php
98 98 ' tabindex="0" role="checkbox" aria-checked="' . $aria_cheched . '">' . 99 99 esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>'; 100 100 } else { 101 $checked = checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ); 102 101 103 /** This filter is documented in wp-includes/category-template.php */ 102 104 $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . 103 105 '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . 104 checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ).106 $checked . 105 107 disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . 106 108 esc_html( apply_filters( 'the_category', $category->name ) ) . '</label>'; 109 110 if ( ! empty( $args['disabled'] ) && $checked ) { 111 $output .= sprintf( 112 '<input value="%d" type="hidden" name="%s[]" />', 113 $category->term_id, 114 esc_attr( $name ) 115 ); 116 } 107 117 } 108 118 } 109 119