Changeset 42787
- Timestamp:
- 03/05/2018 09:49:53 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r42343 r42787 94 94 * for non-API installs, such as when a plugin is installed 95 95 * via upload. 96 * @param string $plugin_file Path to the plugin file .96 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 97 97 */ 98 98 $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file ); -
trunk/src/wp-admin/includes/class-plugin-upgrader-skin.php
r42343 r42787 66 66 * 67 67 * @param array $update_actions Array of plugin action links. 68 * @param string $plugin Path to the plugin file .68 * @param string $plugin Path to the plugin file relative to the plugins directory. 69 69 */ 70 70 $update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin ); -
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r42786 r42787 136 136 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. 137 137 * 138 * @param string $plugin The basename path to the main plugin file.138 * @param string $plugin Path to the plugin file relative to the plugins directory. 139 139 * @param array $args { 140 140 * Optional. Other arguments for upgrading a plugin package. Default empty array. … … 210 210 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. 211 211 * 212 * @param array $plugins Array of the basename paths of the plugins' main files. 213 * @param array $args { 214 * Optional. Other arguments for upgrading several plugins at once. Default empty array. 215 * 216 * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. 217 * Default true. 212 * @param string[] $plugins Array of paths to plugin files relative to the plugins directory. 213 * @param array $args { 214 * Optional. Other arguments for upgrading several plugins at once. 215 * 216 * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. Default true. 218 217 * } 219 218 * @return array|false An array of results indexed by plugin file, or false if unable to connect to the filesystem. -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r42343 r42787 828 828 * including the version, author, 829 829 * author URI, and plugin URI. 830 * @param string $plugin_file Path to the plugin file ,relative to the plugins directory.830 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 831 831 * @param array $plugin_data An array of plugin data. 832 832 * @param string $status Status of the plugin. Defaults are 'All', 'Active', … … 850 850 * 851 851 * @param string $column_name Name of the column. 852 * @param string $plugin_file Path to the plugin file .852 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 853 853 * @param array $plugin_data An array of plugin data. 854 854 */ … … 866 866 * @since 2.3.0 867 867 * 868 * @param string $plugin_file Path to the plugin file ,relative to the plugins directory.868 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 869 869 * @param array $plugin_data An array of plugin data. 870 870 * @param string $status Status of the plugin. Defaults are 'All', 'Active', … … 882 882 * @since 2.7.0 883 883 * 884 * @param string $plugin_file Path to the plugin file ,relative to the plugins directory.884 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 885 885 * @param array $plugin_data An array of plugin data. 886 886 * @param string $status Status of the plugin. Defaults are 'All', 'Active', -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r42777 r42787 692 692 * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. 693 693 * @type bool $bulk Whether the update process is a bulk update. Default true. 694 * @type string $plugin The base plugin path fromthe plugins directory.694 * @type string $plugin Path to the plugin file relative to the plugins directory. 695 695 * @type string $theme The stylesheet or template name of the theme. 696 696 * @type string $language_update_type The language pack update type. Accepts 'plugin', 'theme', -
trunk/src/wp-admin/includes/file.php
r42777 r42787 176 176 * @since 4.9.0 177 177 * 178 * @param string $plugin Path to the main plugin file fromplugins directory.178 * @param string $plugin Path to the plugin file relative to the plugins directory. 179 179 * @return string[] Array of editable file extensions. 180 180 */ … … 223 223 * 224 224 * @param string[] $editable_extensions An array of editable plugin file extensions. 225 * @param string $plugin Path to the main plugin file fromplugins directory.225 * @param string $plugin Path to the plugin file relative to the plugins directory. 226 226 */ 227 227 $editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions, $plugin ); … … 343 343 * 344 344 * @type string $file Relative path to file. 345 * @type string $plugin P lugin being edited.345 * @type string $plugin Path to the plugin file relative to the plugins directory. 346 346 * @type string $theme Theme being edited. 347 347 * @type string $newcontent New content for the file. -
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 ) { -
trunk/src/wp-includes/functions.php
r42719 r42787 5071 5071 * @since 2.9.0 5072 5072 * 5073 * @param string $file Path to the file.5074 * @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name').5073 * @param string $file Absolute path to the file. 5074 * @param array $default_headers List of headers, in the format `array('HeaderKey' => 'Header Name')`. 5075 5075 * @param string $context Optional. If specified adds filter hook {@see 'extra_$context_headers'}. 5076 5076 * Default empty. -
trunk/src/wp-includes/load.php
r42723 r42787 654 654 * While upgrading or installing WordPress, no plugins are returned. 655 655 * 656 * The default directory is wp-content/plugins. To change the default656 * The default directory is `wp-content/plugins`. To change the default 657 657 * directory manually, define `WP_PLUGIN_DIR` and `WP_PLUGIN_URL` 658 * in wp-config.php.659 * 660 * @since 3.0.0 661 * @access private 662 * 663 * @return array Files.658 * in `wp-config.php`. 659 * 660 * @since 3.0.0 661 * @access private 662 * 663 * @return string[] $plugin_file Array of paths to plugin files relative to the plugins directory. 664 664 */ 665 665 function wp_get_active_and_valid_plugins() {
Note: See TracChangeset
for help on using the changeset viewer.