WordPress 3.9.1
[autoinstalls/wordpress.git] / wp-includes / default-widgets.php
index 8a803a47709f6d592d9c1ec0aa01637f528eec0d..e48cc01fe2a86387aaf32cab83a9457f30557cd8 100644 (file)
@@ -732,7 +732,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
                        $cache[ $args['widget_id'] ] = ob_get_flush();
                        wp_cache_set( 'widget_recent_posts', $cache, 'widget' );
                } else {
-                       ob_flush();
+                       ob_end_flush();
                }
        }
 
@@ -1348,11 +1348,12 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
                <p>
                        <label for="<?php echo $this->get_field_id('nav_menu'); ?>"><?php _e('Select Menu:'); ?></label>
                        <select id="<?php echo $this->get_field_id('nav_menu'); ?>" name="<?php echo $this->get_field_name('nav_menu'); ?>">
+                               <option value="0"><?php _e( '&mdash; Select &mdash;' ) ?></option>
                <?php
                        foreach ( $menus as $menu ) {
                                echo '<option value="' . $menu->term_id . '"'
                                        . selected( $nav_menu, $menu->term_id, false )
-                                       . '>'. $menu->name . '</option>';
+                                       . '>'. esc_html( $menu->name ) . '</option>';
                        }
                ?>
                        </select>