'warrior_tabs', 'description' => __('Warrior Tabs Widget', 'warrior') ); $control_ops = array( 'id_base' => 'warrior_tabs' ); $this->WP_Widget( 'warrior_tabs', __('Warrior Tabs', 'warrior'), $widget_ops, $control_ops ); } function widget( $args, $instance ) { global $shortname; extract( $args ); $warrior_tabs_latest_posts_total = $instance['warrior_tabs_latest_posts_total']; $warrior_tabs_most_commented_total = $instance['warrior_tabs_most_commented_total']; echo $before_widget; ?>
    have_posts()) : $warrior_tabs_latest_posts->the_post(); ?>
    get_results("SELECT * FROM {$wpdb->prefix}posts WHERE post_type='post' AND post_status='publish' ORDER BY comment_count DESC LIMIT 0,".$warrior_tabs_most_commented_total); foreach($warrior_tabs_most_commented as $post): setup_postdata($post); ?>
'5', 'warrior_tabs_most_commented_total'=>'5') ); ?>