WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/25/2015 09:11:02 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Props ramiy.
Fixes #35223.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r36087 r36088  
    1414/** The descriptions for theme files. */
    1515$wp_file_descriptions = array(
    16     'index.php' => __( 'Main Index Template' ),
    17     'style.css' => __( 'Stylesheet' ),
    18     'editor-style.css' => __( 'Visual Editor Stylesheet' ),
    19     'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ),
    20     'rtl.css' => __( 'RTL Stylesheet' ),
    21     'comments.php' => __( 'Comments' ),
    22     'footer.php' => __( 'Theme Footer' ),
    23     'header.php' => __( 'Theme Header' ),
    24     'sidebar.php' => __( 'Sidebar' ),
    25     'archive.php' => __( 'Archives' ),
    26     'author.php' => __( 'Author Template' ),
    27     'taxonomy.php' => __( 'Taxonomy Template' ),
    28     'tag.php' => __( 'Tag Template' ),
    29     'category.php' => __( 'Category Template' ),
    30     'page.php' => __( 'Page Template' ),
    31     'home.php' => __( 'Posts Page' ),
    32     'front-page.php' => __( 'Static Front Page' ),
    33     'search.php' => __( 'Search Results' ),
    34     'searchform.php' => __( 'Search Form' ),
    35     'date.php' => __( 'Date Template' ),
    36     'singular.php' => __( 'Singular Template' ),
    37     'single.php' => __( 'Single Post' ),
    38     '404.php' => __( '404 Template' ),
    39     'link.php' => __( 'Links Template' ),
    40     'functions.php' => __( 'Theme Functions' ),
    41     'attachment.php' => __( 'Attachment Template' ),
    42     'image.php' => __('Image Attachment Template'),
    43     'video.php' => __('Video Attachment Template'),
    44     'audio.php' => __('Audio Attachment Template'),
    45     'application.php' => __('Application Attachment Template'),
    46     'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ),
    47     '.htaccess' => __( '.htaccess (for rewrite rules )' ),
     16    'functions.php'         => __( 'Theme Functions' ),
     17    'header.php'            => __( 'Theme Header' ),
     18    'footer.php'            => __( 'Theme Footer' ),
     19    'sidebar.php'           => __( 'Sidebar' ),
     20    'comments.php'          => __( 'Comments' ),
     21    'searchform.php'        => __( 'Search Form' ),
     22    '404.php'               => __( '404 Template' ),
     23    'link.php'              => __( 'Links Template' ),
     24    // Archives
     25    'index.php'             => __( 'Main Index Template' ),
     26    'archive.php'           => __( 'Archives' ),
     27    'author.php'            => __( 'Author Template' ),
     28    'taxonomy.php'          => __( 'Taxonomy Template' ),
     29    'category.php'          => __( 'Category Template' ),
     30    'tag.php'               => __( 'Tag Template' ),
     31    'home.php'              => __( 'Posts Page' ),
     32    'search.php'            => __( 'Search Results' ),
     33    'date.php'              => __( 'Date Template' ),
     34    // Content
     35    'singular.php'          => __( 'Singular Template' ),
     36    'single.php'            => __( 'Single Post' ),
     37    'page.php'              => __( 'Single Page' ),
     38    'front-page.php'        => __( 'Static Front Page' ),
     39    // Attachments
     40    'attachment.php'        => __( 'Attachment Template' ),
     41    'image.php'             => __( 'Image Attachment Template' ),
     42    'video.php'             => __( 'Video Attachment Template' ),
     43    'audio.php'             => __( 'Audio Attachment Template' ),
     44    'application.php'       => __( 'Application Attachment Template' ),
     45    // Stylesheets
     46    'style.css'             => __( 'Stylesheet' ),
     47    'editor-style.css'      => __( 'Visual Editor Stylesheet' ),
     48    'editor-style-rtl.css'  => __( 'Visual Editor RTL Stylesheet' ),
     49    'rtl.css'               => __( 'RTL Stylesheet' ),
     50    // Other
     51    'my-hacks.php'          => __( 'my-hacks.php (legacy hacks support)' ),
     52    '.htaccess'             => __( '.htaccess (for rewrite rules )' ),
    4853    // Deprecated files
    49     'wp-layout.css' => __( 'Stylesheet' ),
    50     'wp-comments.php' => __( 'Comments Template' ),
     54    'wp-layout.css'         => __( 'Stylesheet' ),
     55    'wp-comments.php'       => __( 'Comments Template' ),
    5156    'wp-comments-popup.php' => __( 'Popup Comments Template' ),
    52     'comments-popup.php' => __( 'Popup Comments' ),
     57    'comments-popup.php'    => __( 'Popup Comments' ),
    5358);
    5459
Note: See TracChangeset for help on using the changeset viewer.