| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | echo '<option value="' . esc_attr( $post_type ) . '|' . esc_attr( $taxonomy ) . '"' . $selected . '>' . $tax_options->labels->name . '</option>'; |
| 52 | 52 | |
| 53 | 53 | $rule_fields[] = $post_type . '|' . $taxonomy; |
| 54 | 54 | if( !isset( $rule_field_terms[$taxonomy] ) ) { |
| 55 | - $rule_field_terms[$taxonomy] = get_terms( $taxonomy, array( 'hide_empty' => false ) ); | |
| 55 | + $rule_field_terms[$taxonomy] = get_terms( $taxonomy ); | |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | echo '</optgroup>'; |
| 59 | 59 | } |
| @@ -125,10 +125,10 @@ | ||
| 125 | 125 | <td> |
| 126 | 126 | <select name="wpupg_limit_posts_rule[0][type]" id="wpupg_limit_posts_rule_type_0"> |
| 127 | 127 | <?php |
| 128 | 128 | $rule_type_options = array( |
| 129 | - 'restrict' => __( 'Only these items', 'wp-ultimate-post-grid' ), | |
| 130 | - 'exclude' => __( 'Exclude these items', 'wp-ultimate-post-grid' ), | |
| 129 | + 'restrict' => __( 'Only these posts', 'wp-ultimate-post-grid' ), | |
| 130 | + 'exclude' => __( 'Exclude these posts', 'wp-ultimate-post-grid' ), | |
| 131 | 131 | ); |
| 132 | 132 | |
| 133 | 133 | foreach( $rule_type_options as $rule_type => $rule_type_name ) { |
| 134 | 134 | $selected = '';//$rule_type == $grid->filter_type() ? ' selected="selected"' : ''; |