diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 9eb9f0bc5..1ed01c5e6 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -416,13 +416,39 @@ function meta_form() {
}
+// 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;
if ( $for_post )
$edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true;
- echo '