Changeset 42787 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 03/05/2018 09:49:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r42778 r42787 48 48 * @since 1.5.0 49 49 * 50 * @param string $plugin_file Path to the main plugin file.50 * @param string $plugin_file Absolute path to the main plugin file. 51 51 * @param bool $markup Optional. If the returned data should have HTML markup applied. 52 52 * Default true. … … 195 195 * @since 2.8.0 196 196 * 197 * @param string $plugin Path to the main plugin file fromplugins directory.197 * @param string $plugin Path to the plugin file relative to the plugins directory. 198 198 * @return array List of files relative to the plugin root. 199 199 */ … … 471 471 * @since 2.5.0 472 472 * 473 * @param string $plugin Path to the main plugin file fromplugins directory.473 * @param string $plugin Path to the plugin file relative to the plugins directory. 474 474 * @return bool True, if in the active plugins list. False, not in the list. 475 475 */ … … 490 490 * @see is_plugin_active() 491 491 * 492 * @param string $plugin Path to the main plugin file fromplugins directory.492 * @param string $plugin Path to the plugin file relative to the plugins directory. 493 493 * @return bool True if inactive. False if active. 494 494 */ … … 511 511 * @since 3.0.0 512 512 * 513 * @param string $plugin Path to the main plugin file fromplugins directory.513 * @param string $plugin Path to the plugin file relative to the plugins directory. 514 514 * @return bool True if active for the network, otherwise false. 515 515 */ … … 536 536 * @since 3.0.0 537 537 * 538 * @param string $plugin Path to the main plugin file fromplugins directory.538 * @param string $plugin Path to the plugin file relative to the plugins directory. 539 539 * @return bool True if plugin is network only, false otherwise. 540 540 */ … … 567 567 * @since 2.5.0 568 568 * 569 * @param string $plugin Path to the main plugin file fromplugins directory.569 * @param string $plugin Path to the plugin file relative to the plugins directory. 570 570 * @param string $redirect Optional. URL to redirect to. 571 571 * @param bool $network_wide Optional. Whether to enable the plugin for all sites in the network … … 609 609 * @since 2.9.0 610 610 * 611 * @param string $plugin Path to the main plugin file fromplugins directory.611 * @param string $plugin Path to the plugin file relative to the plugins directory. 612 612 * @param bool $network_wide Whether to enable the plugin for all sites in the network 613 613 * or just the current site. Multisite only. Default is false. … … 651 651 * @since 2.9.0 652 652 * 653 * @param string $plugin Path to the main plugin file fromplugins directory.653 * @param string $plugin Path to the plugin file relative to the plugins directory. 654 654 * @param bool $network_wide Whether to enable the plugin for all sites in the network 655 655 * or just the current site. Multisite only. Default is false. … … 705 705 * @since 2.9.0 706 706 * 707 * @param string $plugin Path to the main plugin file fromplugins directory.707 * @param string $plugin Path to the plugin file relative to the plugins directory. 708 708 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 709 709 * or just the current site. Multisite only. Default is false. … … 753 753 * @since 2.9.0 754 754 * 755 * @param string $plugin Path to the main plugin file fromplugins directory.755 * @param string $plugin Path to the plugin file relative to the plugins directory. 756 756 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network. 757 757 * or just the current site. Multisite only. Default false. … … 815 815 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. 816 816 * 817 * @param array $plugins List of plugins to delete.818 * @param string $deprecated Deprecated.819 * @return bool|null|WP_Error True on success, false if `$plugins` is empty, WP_Erroron failure.820 * Nullif filesystem credentials are required to proceed.817 * @param string[] $plugins List of plugin paths to delete, relative to the plugins directory. 818 * @param string $deprecated Not used. 819 * @return bool|null|WP_Error True on success, false if `$plugins` is empty, `WP_Error` on failure. 820 * `null` if filesystem credentials are required to proceed. 821 821 */ 822 822 function delete_plugins( $plugins, $deprecated = '' ) { … … 893 893 * @since 4.4.0 894 894 * 895 * @param string $plugin_file P lugin file name.895 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 896 896 */ 897 897 do_action( 'delete_plugin', $plugin_file ); … … 911 911 * @since 4.4.0 912 912 * 913 * @param string $plugin_file P lugin file name.913 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 914 914 * @param bool $deleted Whether the plugin deletion was successful. 915 915 */ … … 1006 1006 * @since 2.5.0 1007 1007 * 1008 * @param string $plugin Path to the main plugin file fromplugins directory.1008 * @param string $plugin Path to the plugin file relative to the plugins directory. 1009 1009 * @return WP_Error|int 0 on success, WP_Error on failure. 1010 1010 */ … … 1029 1029 * @since 2.7.0 1030 1030 * 1031 * @param string $plugin Path to the main plugin file fromplugins directory.1031 * @param string $plugin Path to the plugin file relative to the plugins directory. 1032 1032 * @return bool Whether plugin can be uninstalled. 1033 1033 */ … … 1050 1050 * @since 2.7.0 1051 1051 * 1052 * @param string $plugin Path to the main plugin file fromplugins directory.1052 * @param string $plugin Path to the plugin file relative to the plugins directory. 1053 1053 * @return true True if a plugin's uninstall.php file has been found and included. 1054 1054 */ … … 1063 1063 * @since 4.5.0 1064 1064 * 1065 * @param string $plugin Path to the main plugin file fromplugins directory.1065 * @param string $plugin Path to the plugin file relative to the plugins directory. 1066 1066 * @param array $uninstallable_plugins Uninstallable plugins. 1067 1067 */ … … 2009 2009 * @since 4.4.0 Function was moved into the `wp-admin/includes/plugin.php` file. 2010 2010 * 2011 * @param string $plugin P lugin file to load.2011 * @param string $plugin Path to the plugin file relative to the plugins directory. 2012 2012 */ 2013 2013 function plugin_sandbox_scrape( $plugin ) {
Note: See TracChangeset
for help on using the changeset viewer.