Subject: [wp-svn] [39889]
trunk/src/wp-admin/includes/plugin.php: Docs:
Improve the DocBlock for `validate_plugin()`.



Revision 39889 Author SergeyBiryukov Date 2017-01-12 06:14:31 +0000 (Thu, 12 Jan 2017)
Docs: Improve the DocBlock for `validate_plugin()`.

Props theMikeD.
Fixes #36333.
Modified Paths Diff Modified: trunk/src/wp-admin/includes/plugin.php
--- trunk/src/wp-admin/includes/plugin.php	2017-01-12 05:55:01 UTC (rev 39888)
+++ trunk/src/wp-admin/includes/plugin.php	2017-01-12 06:14:31 UTC (rev 39889)
@@ -940,11 +940,11 @@
 /**
  * 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) {
_______________________________________________
wp-svn mailing list
wp-svn@xxxxxxxxxxxxxxxxxxx
http://lists.wordpress.org/mailman/listinfo/wp-svn



Programming list archiving by: Enterprise Git Hosting