Skip to content
Snippets Groups Projects
Commit 99cb6ed3 authored by Erick Hitter's avatar Erick Hitter
Browse files

Coding standards: more improvements

parent afb0a0c9
Branches
Tags
No related merge requests found
...@@ -475,7 +475,7 @@ class taxonomy_dropdown_widget extends WP_Widget { ...@@ -475,7 +475,7 @@ class taxonomy_dropdown_widget extends WP_Widget {
<p> <p>
<label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy' ); ?>:</label><br /> <label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy' ); ?>:</label><br />
<select name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>"> <select name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>">
<?php foreach ( $taxonomies as $tax ): ?> <?php foreach ( $taxonomies as $tax ) : ?>
<option value="<?php echo esc_attr( $tax->name ); ?>"<?php selected( $tax->name, $taxonomy, true ); ?>><?php echo $tax->labels->name; ?></option> <option value="<?php echo esc_attr( $tax->name ); ?>"<?php selected( $tax->name, $taxonomy, true ); ?>><?php echo $tax->labels->name; ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
...@@ -595,7 +595,7 @@ function taxonomy_dropdown_widget( $options = array(), $id = '' ) { ...@@ -595,7 +595,7 @@ function taxonomy_dropdown_widget( $options = array(), $id = '' ) {
** LEGACY FUNCTIONS FOR BACKWARDS COMPATIBILITY ** LEGACY FUNCTIONS FOR BACKWARDS COMPATIBILITY
**/ **/
if ( ! function_exists( 'generateTagDropdown' ) ): if ( ! function_exists( 'generateTagDropdown' ) ) :
/** /**
* Build tag dropdown based on provided arguments * Build tag dropdown based on provided arguments
* @since 1.7 * @since 1.7
...@@ -613,7 +613,7 @@ if ( ! function_exists( 'generateTagDropdown' ) ): ...@@ -613,7 +613,7 @@ if ( ! function_exists( 'generateTagDropdown' ) ):
} }
endif; endif;
if ( ! function_exists( 'TDW_direct' ) ): if ( ! function_exists( 'TDW_direct' ) ) :
/** /**
* Build tag dropdown based on provided arguments * Build tag dropdown based on provided arguments
* @since 1.6 * @since 1.6
...@@ -642,7 +642,7 @@ if ( ! function_exists( 'TDW_direct' ) ): ...@@ -642,7 +642,7 @@ if ( ! function_exists( 'TDW_direct' ) ):
} }
endif; endif;
if ( ! function_exists( 'makeTagDropdown' ) ): if ( ! function_exists( 'makeTagDropdown' ) ) :
/** /**
* Build tag dropdown based on provided arguments * Build tag dropdown based on provided arguments
* @since 1.3 * @since 1.3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment