diff --git a/ultimate-posts-widget.php b/ultimate-posts-widget.php index f727f64..d2b461b 100644 --- a/ultimate-posts-widget.php +++ b/ultimate-posts-widget.php @@ -33,18 +33,18 @@ class WP_Widget_Ultimate_Posts extends WP_Widget { function WP_Widget_Ultimate_Posts() { - $widget_options = array( - 'classname' => 'widget_ultimate_posts', - 'description' => __( 'Displays list of posts with an array of options', 'upw' ) + $widget_options = array( + 'classname' => 'widget_ultimate_posts', + 'description' => __( 'Displays list of posts with an array of options', 'upw' ) ); $control_options = array( 'width' => 450 ); - $this->WP_Widget( - 'sticky-posts', - __( 'Ultimate Posts', 'upw' ), + $this->WP_Widget( + 'sticky-posts', + __( 'Ultimate Posts', 'upw' ), $widget_options, $control_options ); @@ -112,7 +112,7 @@ function widget( $args, $instance ) { $orderby = $instance['orderby']; $meta_key = $instance['meta_key']; $custom_fields = $instance['custom_fields']; - + // Sticky posts if ($sticky == 'only') { $sticky_query = array( 'post__in' => get_option( 'sticky_posts' ) ); @@ -552,9 +552,9 @@ function form( $instance ) {

@@ -618,7 +618,7 @@ function form( $instance ) {

- +