Changeset 41547
- Timestamp:
- 09/20/2017 03:15:19 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-categories.php
r41181 r41547 60 60 'orderby' => 'name', 61 61 'show_count' => $c, 62 'hierarchical' => $h 62 'hierarchical' => $h, 63 63 ); 64 64 65 65 if ( $d ) { 66 echo sprintf( '<form action="%s" method="get">', esc_url( home_url() ) ); 66 67 $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; 67 68 $first_dropdown = false; … … 82 83 */ 83 84 wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args ) ); 85 86 echo '</form>'; 84 87 ?> 85 88 … … 90 93 function onCatChange() { 91 94 if ( dropdown.options[ dropdown.selectedIndex ].value > 0 ) { 92 location.href = "<?php echo home_url(); ?>/?cat=" + dropdown.options[ dropdown.selectedIndex ].value;95 dropdown.parentNode.submit(); 93 96 } 94 97 }
Note: See TracChangeset
for help on using the changeset viewer.