Make WordPress Core

Changeset 39889


Ignore:
Timestamp:
01/12/2017 06:14:31 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve the DocBlock for validate_plugin().

Props theMikeD.
Fixes #36333.

File:
1 edited

Legend:

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

    r39600 r39889  
    941941 * Validate the plugin path.
    942942 *
    943  * Checks that the file exists and is a valid file. See validate_file().
     943 * Checks that the main plugin file exists and is a valid plugin. See validate_file().
    944944 *
    945945 * @since 2.5.0
    946946 *
    947  * @param string $plugin Plugin Path.
     947 * @param string $plugin Path to the main plugin file from plugins directory.
    948948 * @return WP_Error|int 0 on success, WP_Error on failure.
    949949 */
Note: See TracChangeset for help on using the changeset viewer.