Make WordPress Core


Ignore:
Timestamp:
12/21/2021 08:04:54 PM (2 years ago)
Author:
hellofromTonya
Message:

Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes.

[52232] relocated the Theme Editor menu item from Appearance to Tools for block themes. This commit relocates the Plugin Editor menu item from Plugins to Tools for block themes for a consistent workflow.

Both the Theme Editor and Plugin Editor menu items are renamed to "Theme File Editor" and "Plugin File Editor" respectively. Why? To better identify their purpose, i.e. to directly edit the code in the theme or plugin files. The rename is not limited to only block themes.

Follow-up to [52232].

Props poena, annezazu, audrasjb, clorith, courane01, costdev, dryanpress, desrosj, hellofromTonya, ipstenu, jameskoster, joen, johnbillion, joyously, manfcarlo, marybaum, pbiron, SergeyBiryukov, walbo, youknowriad.
Fixes #54382.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r52136 r52406  
    35793579 *     @type string   $type       The MIME type of the file to be edited.
    35803580 *     @type string   $file       Filename to be edited. Extension is used to sniff the type. Can be supplied as alternative to `$type` param.
    3581  *     @type WP_Theme $theme      Theme being edited when on theme editor.
    3582  *     @type string   $plugin     Plugin being edited when on plugin editor.
     3581 *     @type WP_Theme $theme      Theme being edited when on the theme file editor.
     3582 *     @type string   $plugin     Plugin being edited when on the plugin file editor.
    35833583 *     @type array    $codemirror Additional CodeMirror setting overrides.
    35843584 *     @type array    $csslint    CSSLint rule overrides.
     
    36703670 *     @type string   $type       The MIME type of the file to be edited.
    36713671 *     @type string   $file       Filename to be edited. Extension is used to sniff the type. Can be supplied as alternative to `$type` param.
    3672  *     @type WP_Theme $theme      Theme being edited when on theme editor.
    3673  *     @type string   $plugin     Plugin being edited when on plugin editor.
     3672 *     @type WP_Theme $theme      Theme being edited when on the theme file editor.
     3673 *     @type string   $plugin     Plugin being edited when on the plugin file editor.
    36743674 *     @type array    $codemirror Additional CodeMirror setting overrides.
    36753675 *     @type array    $csslint    CSSLint rule overrides.
     
    40074007     *     @type string   $type       The MIME type of the file to be edited.
    40084008     *     @type string   $file       Filename being edited.
    4009      *     @type WP_Theme $theme      Theme being edited when on theme editor.
    4010      *     @type string   $plugin     Plugin being edited when on plugin editor.
     4009     *     @type WP_Theme $theme      Theme being edited when on the theme file editor.
     4010     *     @type string   $plugin     Plugin being edited when on the plugin file editor.
    40114011     *     @type array    $codemirror Additional CodeMirror setting overrides.
    40124012     *     @type array    $csslint    CSSLint rule overrides.
Note: See TracChangeset for help on using the changeset viewer.