Index: trunk/wp-admin/includes/template.php =================================================================== --- trunk/wp-admin/includes/template.php (revision 5744) +++ trunk/wp-admin/includes/template.php (revision 5804) @@ -417,4 +417,30 @@ } +// return an option/select list with correct html escaping +function input_dropdown($name, $vals, $selected=null, $class='', $onchange='') { + + // cf. http://www.w3.org/TR/html401/appendix/notes.html#h-B.3.2.2 + $out = '\n"; + + return $out; +} + +// return an array of month names for the current locale, indexed 1..12 +function locale_months() { + global $wp_locale; + + $months = array(); + foreach ( range(1, 12) as $m ) + $months[$m] = $wp_locale->get_month( $m ); + return $months; +} + function touch_time( $edit = 1, $for_post = 1 ) { global $wp_locale, $post, $comment; @@ -423,5 +449,5 @@ $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true; - echo '