Commit 138e33a5 authored by Erick Hitter's avatar Erick Hitter
Browse files

Markup output formatting for the widget

parent 120fbac1
......@@ -383,16 +383,16 @@ class taxonomy_dropdown_widget extends WP_Widget {
// Widget
if ( $widget = $this->plugin->render_dropdown( $instance, $this->number ) ) {
// Wrapper and title
$output = $before_widget;
$output = $before_widget . "\r\n";
if ( ! empty( $title ) )
$output .= $before_title . apply_filters( 'taxonomy_dropdown_widget_title', '<label for="taxonomy_dropdown_widget_dropdown_' . $this->number . '">' . $title . '</label>', $this->number ) . $after_title;
$output .= $before_title . apply_filters( 'taxonomy_dropdown_widget_title', '<label for="taxonomy_dropdown_widget_dropdown_' . $this->number . '">' . $title . '</label>', $this->number ) . $after_title . "\r\n";
// Widget
$output .= $widget;
$output .= $widget . "\r\n";
// Wrapper
$output .= $after_widget;
$output .= $after_widget . "\r\n";
echo $output;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment