Theme Editor: Break `$wp_file_descriptions` array into sections and reorder for consistency and readability.

Props ramiy.
Fixes #35223.
Built from https://develop.svn.wordpress.org/trunk@36088


git-svn-id: http://core.svn.wordpress.org/trunk@36053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-12-25 21:12:26 +00:00
parent 11b89a88a9
commit 2328667dc9
2 changed files with 41 additions and 36 deletions

View File

@ -13,43 +13,48 @@
/** The descriptions for theme files. */ /** The descriptions for theme files. */
$wp_file_descriptions = array( $wp_file_descriptions = array(
'index.php' => __( 'Main Index Template' ), 'functions.php' => __( 'Theme Functions' ),
'style.css' => __( 'Stylesheet' ), 'header.php' => __( 'Theme Header' ),
'editor-style.css' => __( 'Visual Editor Stylesheet' ), 'footer.php' => __( 'Theme Footer' ),
'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ), 'sidebar.php' => __( 'Sidebar' ),
'rtl.css' => __( 'RTL Stylesheet' ), 'comments.php' => __( 'Comments' ),
'comments.php' => __( 'Comments' ), 'searchform.php' => __( 'Search Form' ),
'footer.php' => __( 'Theme Footer' ), '404.php' => __( '404 Template' ),
'header.php' => __( 'Theme Header' ), 'link.php' => __( 'Links Template' ),
'sidebar.php' => __( 'Sidebar' ), // Archives
'archive.php' => __( 'Archives' ), 'index.php' => __( 'Main Index Template' ),
'author.php' => __( 'Author Template' ), 'archive.php' => __( 'Archives' ),
'taxonomy.php' => __( 'Taxonomy Template' ), 'author.php' => __( 'Author Template' ),
'tag.php' => __( 'Tag Template' ), 'taxonomy.php' => __( 'Taxonomy Template' ),
'category.php' => __( 'Category Template' ), 'category.php' => __( 'Category Template' ),
'page.php' => __( 'Page Template' ), 'tag.php' => __( 'Tag Template' ),
'home.php' => __( 'Posts Page' ), 'home.php' => __( 'Posts Page' ),
'front-page.php' => __( 'Static Front Page' ), 'search.php' => __( 'Search Results' ),
'search.php' => __( 'Search Results' ), 'date.php' => __( 'Date Template' ),
'searchform.php' => __( 'Search Form' ), // Content
'date.php' => __( 'Date Template' ), 'singular.php' => __( 'Singular Template' ),
'singular.php' => __( 'Singular Template' ), 'single.php' => __( 'Single Post' ),
'single.php' => __( 'Single Post' ), 'page.php' => __( 'Single Page' ),
'404.php' => __( '404 Template' ), 'front-page.php' => __( 'Static Front Page' ),
'link.php' => __( 'Links Template' ), // Attachments
'functions.php' => __( 'Theme Functions' ), 'attachment.php' => __( 'Attachment Template' ),
'attachment.php' => __( 'Attachment Template' ), 'image.php' => __( 'Image Attachment Template' ),
'image.php' => __('Image Attachment Template'), 'video.php' => __( 'Video Attachment Template' ),
'video.php' => __('Video Attachment Template'), 'audio.php' => __( 'Audio Attachment Template' ),
'audio.php' => __('Audio Attachment Template'), 'application.php' => __( 'Application Attachment Template' ),
'application.php' => __('Application Attachment Template'), // Stylesheets
'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), 'style.css' => __( 'Stylesheet' ),
'.htaccess' => __( '.htaccess (for rewrite rules )' ), 'editor-style.css' => __( 'Visual Editor Stylesheet' ),
'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ),
'rtl.css' => __( 'RTL Stylesheet' ),
// Other
'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ),
'.htaccess' => __( '.htaccess (for rewrite rules )' ),
// Deprecated files // Deprecated files
'wp-layout.css' => __( 'Stylesheet' ), 'wp-layout.css' => __( 'Stylesheet' ),
'wp-comments.php' => __( 'Comments Template' ), 'wp-comments.php' => __( 'Comments Template' ),
'wp-comments-popup.php' => __( 'Popup Comments Template' ), 'wp-comments-popup.php' => __( 'Popup Comments Template' ),
'comments-popup.php' => __( 'Popup Comments' ), 'comments-popup.php' => __( 'Popup Comments' ),
); );
/** /**

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36087'; $wp_version = '4.5-alpha-36088';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.