Changeset 34717 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 09/30/2015 04:12:16 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/class-wp-upgrader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r34566 r34717 453 453 } elseif ( count( $source_files ) == 0 ) { 454 454 return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); // There are no files? 455 } else { // It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename.455 } else { // It's only a single file, the upgrader will use the folder name of this file as the destination folder. Folder name is based on zip filename. 456 456 $source = trailingslashit( $args['source'] ); 457 457 } … … 877 877 * @param string $plugin The basename path to the main plugin file. 878 878 * @param array $args { 879 * Optional. Other arguments for upgrading a plugin package. Def ualt empty array.879 * Optional. Other arguments for upgrading a plugin package. Default empty array. 880 880 * 881 881 * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. … … 1233 1233 * @since 2.8.0 1234 1234 * @access public 1235 * @var array|WP_Er orr $result1235 * @var array|WP_Error $result 1236 1236 * @see WP_Upgrader::$result 1237 1237 */ … … 2422 2422 2423 2423 /** 2424 * Compare the disk file checksums agains the expected checksums.2424 * Compare the disk file checksums against the expected checksums. 2425 2425 * 2426 2426 * @since 3.7.0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)