WordPress.org

Make WordPress Core

Ticket #32758: 32758.diff

File 32758.diff, 850 bytes (added by swissspidy, 4 years ago)
  • src/wp-admin/includes/plugin.php

    diff --git src/wp-admin/includes/plugin.php src/wp-admin/includes/plugin.php
    index ef6494e..e41ac22 100644
    function get_plugin_files($plugin) { 
    220220 * WordPress only supports plugin files in the base plugins directory
    221221 * (wp-content/plugins) and in one directory above the plugins directory
    222222 * (wp-content/plugins/my-plugin). The file it looks for has the plugin data and
    223  * must be found in those two locations. It is recommended that do keep your
    224  * plugin files in directories.
     223 * must be found in those two locations. It is recommended to keep your
     224 * plugin files in their own directories.
    225225 *
    226226 * The file with the plugin data is the file that will be included and therefore
    227227 * needs to have the main execution for the plugin. This does not mean