Ticket #36333: 36333.diff
File 36333.diff, 632 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/plugin.php
933 933 /** 934 934 * Validate the plugin path. 935 935 * 936 * Checks that the file exists and {@link validate_file() is valid file}.936 * Checks that the main plugin file exists and is a valid plugin 937 937 * 938 938 * @since 2.5.0 939 939 * 940 * @param string $plugin P lugin Path940 * @param string $plugin Path to main plugin file 941 941 * @return WP_Error|int 0 on success, WP_Error on failure. 942 942 */ 943 943 function validate_plugin($plugin) {