Changeset 37342 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 05/02/2016 03:59:56 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r37272 r37342 43 43 * The result of the installation. 44 44 * 45 * This is set by {@see WP_Upgrader::install_package()}, only when the package is installed46 * successfully. It will then be an array, unless a {@see WP_Error}is returned by the47 * {@see 'upgrader_post_install'} filter. In that case, the `WP_Error`will be assigned to45 * This is set by WP_Upgrader::install_package(), only when the package is installed 46 * successfully. It will then be an array, unless a WP_Error is returned by the 47 * {@see 'upgrader_post_install'} filter. In that case, the WP_Error will be assigned to 48 48 * it. 49 49 * … … 94 94 * @access public 95 95 * 96 * @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a {@see WP_Upgrader_Skin}96 * @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a WP_Upgrader_Skin. 97 97 * instance. 98 98 */ … … 156 156 * 157 157 * @param array $directories Optional. A list of directories. If any of these do 158 * not exist, a {@see WP_Error}object will be returned.158 * not exist, a WP_Error object will be returned. 159 159 * Default empty array. 160 160 * @param bool $allow_relaxed_file_ownership Whether to allow relaxed file ownership. 161 161 * Default false. 162 * @return bool|WP_Error True if able to connect, false or a {@see WP_Error}otherwise.162 * @return bool|WP_Error True if able to connect, false or a WP_Error otherwise. 163 163 */ 164 164 public function fs_connect( $directories = array(), $allow_relaxed_file_ownership = false ) { … … 219 219 * @param string $package The URI of the package. If this is the full path to an 220 220 * existing local file, it will be returned untouched. 221 * @return string|WP_Error The full path to the downloaded package file, or a {@see WP_Error}object.221 * @return string|WP_Error The full path to the downloaded package file, or a WP_Error object. 222 222 */ 223 223 public function download_package( $package ) { … … 265 265 * @param bool $delete_package Optional. Whether to delete the package file after attempting 266 266 * to unpack it. Default true. 267 * @return string|WP_Error The path to the unpacked contents, or a {@see WP_Error}on failure.267 * @return string|WP_Error The path to the unpacked contents, or a WP_Error on failure. 268 268 */ 269 269 public function unpack_package( $package, $delete_package = true ) { … … 392 392 * the destination folder already exists. Default true. 393 393 * @type array $hook_extra Extra arguments to pass to the filter hooks called by 394 * {@see WP_Upgrader::install_package()}. Default empty array.394 * WP_Upgrader::install_package(). Default empty array. 395 395 * } 396 396 * 397 * @return array|WP_Error The result (also stored in `WP_Upgrader: $result`), or a {@see WP_Error}on failure.397 * @return array|WP_Error The result (also stored in `WP_Upgrader::$result`), or a WP_Error on failure. 398 398 */ 399 399 public function install_package( $args = array() ) { … … 601 601 * @type bool $is_multi Whether this run is one of multiple upgrade/install 602 602 * actions being performed in bulk. When true, the skin 603 * {@see WP_Upgrader::header()} and {@see WP_Upgrader::footer()}603 * WP_Upgrader::header() and WP_Upgrader::footer() 604 604 * aren't called. Default false. 605 605 * @type array $hook_extra Extra arguments to pass to the filter hooks called by 606 * {@see WP_Upgrader::run()}.606 * WP_Upgrader::run(). 607 607 * } 608 608 * @return array|false|WP_error The result from self::install_package() on success, otherwise a WP_Error, … … 950 950 * Default true. 951 951 * } 952 * @return bool|WP_Error True if the upgrade was successful, false or a {@see WP_Error}object otherwise.952 * @return bool|WP_Error True if the upgrade was successful, false or a WP_Error object otherwise. 953 953 */ 954 954 public function upgrade( $plugin, $args = array() ) { … … 1144 1144 * 1145 1145 * This function is added to the {@see 'upgrader_source_selection'} filter by 1146 * {@see Plugin_Upgrader::install()}.1146 * Plugin_Upgrader::install(). 1147 1147 * 1148 1148 * @since 3.3.0 … … 1152 1152 * 1153 1153 * @param string $source The path to the downloaded package source. 1154 * @return string|WP_Error The source as passed, or a {@see WP_Error}object1154 * @return string|WP_Error The source as passed, or a WP_Error object 1155 1155 * if no plugins were found. 1156 1156 */ … … 1212 1212 * Deactivates a plugin before it is upgraded. 1213 1213 * 1214 * Hooked to the {@see 'upgrader_pre_install'} filter by {@see Plugin_Upgrader::upgrade()}.1214 * Hooked to the {@see 'upgrader_pre_install'} filter by Plugin_Upgrader::upgrade(). 1215 1215 * 1216 1216 * @since 2.8.0 … … 1220 1220 * @param bool|WP_Error $return Upgrade offer return. 1221 1221 * @param array $plugin Plugin package arguments. 1222 * @return bool|WP_Error The passed in $return param or {@see WP_Error}.1222 * @return bool|WP_Error The passed in $return param or WP_Error. 1223 1223 */ 1224 1224 public function deactivate_plugin_before_upgrade($return, $plugin) { … … 1247 1247 * 1248 1248 * Hooked to the {@see 'upgrader_clear_destination'} filter by 1249 * {@see Plugin_Upgrader::upgrade()} and {@see Plugin_Upgrader::bulk_upgrade()}.1249 * Plugin_Upgrader::upgrade() and Plugin_Upgrader::bulk_upgrade(). 1250 1250 * 1251 1251 * @since 2.8.0 … … 1366 1366 * Check if a child theme is being installed and we need to install its parent. 1367 1367 * 1368 * Hooked to the {@see 'upgrader_post_install'} filter by {@see Theme_Upgrader::install()}.1368 * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::install(). 1369 1369 * 1370 1370 * @since 3.4.0 … … 1439 1439 * 1440 1440 * Hooked to the {@see 'install_theme_complete_actions'} filter by 1441 * {@see Theme_Upgrader::check_parent_theme_filter()}when installing1441 * Theme_Upgrader::check_parent_theme_filter() when installing 1442 1442 * a child theme and installing the parent theme fails. 1443 1443 * … … 1468 1468 * } 1469 1469 * 1470 * @return bool|WP_Error True if the install was successful, false or a {@see WP_Error}object otherwise.1470 * @return bool|WP_Error True if the install was successful, false or a WP_Error object otherwise. 1471 1471 */ 1472 1472 public function install( $package, $args = array() ) { … … 1523 1523 * Default true. 1524 1524 * } 1525 * @return bool|WP_Error True if the upgrade was successful, false or a {@see WP_Error}object otherwise.1525 * @return bool|WP_Error True if the upgrade was successful, false or a WP_Error object otherwise. 1526 1526 */ 1527 1527 public function upgrade( $theme, $args = array() ) { … … 1702 1702 * Check that the package source contains a valid theme. 1703 1703 * 1704 * Hooked to the {@see 'upgrader_source_selection'} filter by {@see Theme_Upgrader::install()}.1704 * Hooked to the {@see 'upgrader_source_selection'} filter by Theme_Upgrader::install(). 1705 1705 * It will return an error if the theme doesn't have style.css or index.php 1706 1706 * files. … … 1762 1762 * Turn on maintenance mode before attempting to upgrade the current theme. 1763 1763 * 1764 * Hooked to the {@see 'upgrader_pre_install'} filter by {@see Theme_Upgrader::upgrade()}and1765 * {@see Theme_Upgrader::bulk_upgrade()}.1764 * Hooked to the {@see 'upgrader_pre_install'} filter by Theme_Upgrader::upgrade() and 1765 * Theme_Upgrader::bulk_upgrade(). 1766 1766 * 1767 1767 * @since 2.8.0 … … 1790 1790 * Turn off maintenance mode after upgrading the current theme. 1791 1791 * 1792 * Hooked to the {@see 'upgrader_post_install'} filter by {@see Theme_Upgrader::upgrade()}1793 * and {@see Theme_Upgrader::bulk_upgrade()}.1792 * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::upgrade() 1793 * and Theme_Upgrader::bulk_upgrade(). 1794 1794 * 1795 1795 * @since 2.8.0 … … 1825 1825 * Delete the old theme during an upgrade. 1826 1826 * 1827 * Hooked to the {@see 'upgrader_clear_destination'} filter by {@see Theme_Upgrader::upgrade()}1828 * and {@see Theme_Upgrader::bulk_upgrade()}.1827 * Hooked to the {@see 'upgrader_clear_destination'} filter by Theme_Upgrader::upgrade() 1828 * and Theme_Upgrader::bulk_upgrade(). 1829 1829 * 1830 1830 * @since 2.8.0 … … 2005 2005 * @param string|false $update Optional. Whether an update offer is available. Default false. 2006 2006 * @param array $args Optional. Other optional arguments, see 2007 * {@see Language_Pack_Upgrader::bulk_upgrade()}. Default empty array.2008 * @return array|bool|WP_Error The result of the upgrade, or a {@see wP_Error}object instead.2007 * Language_Pack_Upgrader::bulk_upgrade(). Default empty array. 2008 * @return array|bool|WP_Error The result of the upgrade, or a WP_Error object instead. 2009 2009 */ 2010 2010 public function upgrade( $update = false, $args = array() ) { … … 2151 2151 * 2152 2152 * Hooked to the {@see 'upgrader_source_selection'} filter by 2153 * {@see Language_Pack_Upgrader::bulk_upgrade()}.2153 * Language_Pack_Upgrader::bulk_upgrade(). 2154 2154 * 2155 2155 * @since 3.7.0
Note: See TracChangeset
for help on using the changeset viewer.