WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/05/2018 09:49:53 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Standardise and correct documentation relating to parameters which accept plugin names.

See #42505

File:
1 edited

Legend:

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

    r42777 r42787  
    176176 * @since 4.9.0
    177177 *
    178  * @param string $plugin Path to the main plugin file from plugins directory.
     178 * @param string $plugin Path to the plugin file relative to the plugins directory.
    179179 * @return string[] Array of editable file extensions.
    180180 */
     
    223223     *
    224224     * @param string[] $editable_extensions An array of editable plugin file extensions.
    225      * @param string   $plugin              Path to the main plugin file from plugins directory.
     225     * @param string   $plugin              Path to the plugin file relative to the plugins directory.
    226226     */
    227227    $editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions, $plugin );
     
    343343 *
    344344 *     @type string $file       Relative path to file.
    345  *     @type string $plugin     Plugin being edited.
     345 *     @type string $plugin     Path to the plugin file relative to the plugins directory.
    346346 *     @type string $theme      Theme being edited.
    347347 *     @type string $newcontent New content for the file.
Note: See TracChangeset for help on using the changeset viewer.