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,36 +13,41 @@
/** 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' ),
'editor-style.css' => __( 'Visual Editor Stylesheet' ),
'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ),
'rtl.css' => __( 'RTL Stylesheet' ),
'comments.php' => __( 'Comments' ),
'footer.php' => __( 'Theme Footer' ),
'header.php' => __( 'Theme Header' ), 'header.php' => __( 'Theme Header' ),
'footer.php' => __( 'Theme Footer' ),
'sidebar.php' => __( 'Sidebar' ), 'sidebar.php' => __( 'Sidebar' ),
'comments.php' => __( 'Comments' ),
'searchform.php' => __( 'Search Form' ),
'404.php' => __( '404 Template' ),
'link.php' => __( 'Links Template' ),
// Archives
'index.php' => __( 'Main Index Template' ),
'archive.php' => __( 'Archives' ), 'archive.php' => __( 'Archives' ),
'author.php' => __( 'Author Template' ), 'author.php' => __( 'Author Template' ),
'taxonomy.php' => __( 'Taxonomy Template' ), 'taxonomy.php' => __( 'Taxonomy Template' ),
'tag.php' => __( 'Tag 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' ),
'searchform.php' => __( 'Search Form' ),
'date.php' => __( 'Date Template' ), 'date.php' => __( 'Date Template' ),
// Content
'singular.php' => __( 'Singular Template' ), 'singular.php' => __( 'Singular Template' ),
'single.php' => __( 'Single Post' ), 'single.php' => __( 'Single Post' ),
'404.php' => __( '404 Template' ), 'page.php' => __( 'Single Page' ),
'link.php' => __( 'Links Template' ), 'front-page.php' => __( 'Static Front Page' ),
'functions.php' => __( 'Theme Functions' ), // Attachments
'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
'style.css' => __( 'Stylesheet' ),
'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)' ), 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ),
'.htaccess' => __( '.htaccess (for rewrite rules )' ), '.htaccess' => __( '.htaccess (for rewrite rules )' ),
// Deprecated files // Deprecated files

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.