From fdb5bdb74019ed6470d1514abf8de047633ec031 Mon Sep 17 00:00:00 2001 From: rboren Date: Wed, 19 Jan 2005 15:23:38 +0000 Subject: [PATCH] Include legacy template files in the common file list only if they exist. git-svn-id: http://svn.automattic.com/wordpress/trunk@2105 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 12 +++++------- wp-admin/templates.php | 7 ++++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index f12c9fd0b..b27b3d313 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -855,17 +855,11 @@ function get_real_file_to_edit($file) { $wp_file_descriptions = array( 'index.php' => __('Main Template'), - 'wp-layout.css' => __('Stylesheet'), 'style.css' => __('Stylesheet'), - 'wp-comments.php' => __('Comments Template'), 'comments.php' => __('Comments Template'), - 'wp-comments-popup.php' => __('Popup Comments Template'), 'comments-popup.php' => __('Popup Comments Template'), - 'wp-footer.php' => __('Footer Template'), 'footer.php' => __('Footer Template'), - 'wp-header.php' => __('Header Template'), 'header.php' => __('Header Template'), - 'wp-sidebar.php' => __('Sidebar Template'), 'sidebar.php' => __('Sidebar Template'), 'archive.php' => __('Archive Template'), 'category.php' => __('Category Template'), @@ -874,7 +868,11 @@ $wp_file_descriptions = 'single.php' => __('Post Template'), '404.php' => __('404 Template'), 'my-hacks.php' => __('my-hacks.php (legacy hacks support)'), - '.htaccess' => __('.htaccess (for rewrite rules)') + '.htaccess' => __('.htaccess (for rewrite rules)'), + // Deprecated files + 'wp-layout.css' => __('Stylesheet'), + 'wp-comments.php' => __('Comments Template'), + 'wp-comments-popup.php' => __('Popup Comments Template') ); function get_file_description($file) { diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 1a9ba005b..ffccdae66 100644 --- a/wp-admin/templates.php +++ b/wp-admin/templates.php @@ -100,7 +100,12 @@ echo ''; endif; ?>

- +