Docs: Improve the DocBlock for validate_plugin().

Props theMikeD.
Fixes #36333.

git-svn-id: https://develop.svn.wordpress.org/trunk@39889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2017-01-12 06:14:31 +00:00
parent 02cd4a1e97
commit 1c66c0ac3c
+2 -2
View File
@@ -940,11 +940,11 @@ function validate_active_plugins() {
/**
* Validate the plugin path.
*
* Checks that the file exists and is a valid file. See validate_file().
* Checks that the main plugin file exists and is a valid plugin. See validate_file().
*
* @since 2.5.0
*
* @param string $plugin Plugin Path.
* @param string $plugin Path to the main plugin file from plugins directory.
* @return WP_Error|int 0 on success, WP_Error on failure.
*/
function validate_plugin($plugin) {