Merge pull request #595 from pixeltrix/fix-category-widget-ordering

Fix ordering of categories in Product Categories widget
This commit is contained in:
Mike Jolley 2012-02-08 01:26:24 -08:00
commit 7d424aea61
1 changed files with 2 additions and 2 deletions

View File

@ -177,8 +177,8 @@ class WooCommerce_Widget_Product_Categories extends WP_Widget {
<p><label for="<?php echo $this->get_field_id('orderby'); ?>"><?php _e('Order by:', 'woocommerce') ?></label>
<select id="<?php echo esc_attr( $this->get_field_id('orderby') ); ?>" name="<?php echo esc_attr( $this->get_field_name('orderby') ); ?>">
<option value="and" <?php selected($orderby, 'order'); ?>><?php _e('Category Order', 'woocommerce'); ?></option>
<option value="or" <?php selected($orderby, 'name'); ?>><?php _e('Name', 'woocommerce'); ?></option>
<option value="order" <?php selected($orderby, 'order'); ?>><?php _e('Category Order', 'woocommerce'); ?></option>
<option value="name" <?php selected($orderby, 'name'); ?>><?php _e('Name', 'woocommerce'); ?></option>
</select></p>
<p><input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('dropdown') ); ?>" name="<?php echo esc_attr( $this->get_field_name('dropdown') ); ?>"<?php checked( $dropdown ); ?> />