Ticket #36872: 36872.6.patch
File 36872.6.patch, 3.4 KB (added by , 5 years ago) |
---|
-
src/wp-admin/includes/class-language-pack-upgrader.php
224 224 if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) 225 225 return new WP_Error( 'mkdir_failed_lang_dir', $this->strings['mkdir_failed'], $remote_destination ); 226 226 227 $language_updates_results = array(); 228 227 229 foreach ( $language_updates as $language_update ) { 228 230 229 231 $this->skin->language_update = $language_update; … … 256 258 // Prevent credentials auth screen from displaying multiple times. 257 259 if ( false === $result ) 258 260 break; 261 262 $language_updates_results[] = array( 263 'language' => $language_update->language, 264 'version' => $language_update->version, 265 'type' => $language_update->type, 266 'slug' => $language_update->slug 267 ); 259 268 } 260 269 270 /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ 271 do_action( 'upgrader_process_complete', $this, array( 272 'action' => 'update', 273 'type' => 'translation', 274 'bulk' => true, 275 'translations' => $language_updates_results 276 ) ); 277 261 278 $this->skin->bulk_footer(); 262 279 263 280 $this->skin->footer(); -
src/wp-admin/includes/class-wp-upgrader.php
762 762 * 763 763 * @since 3.6.0 764 764 * @since 3.7.0 Added to WP_Upgrader::run(). 765 * @since 4.6.0 `translations` was added as a possible argument to `$hook_extra`. 765 766 * 766 767 * @param WP_Upgrader $this WP_Upgrader instance. In other contexts, $this, might be a 767 * Theme_Upgrader, Plugin_Upgrader or Core_Upgradeinstance.768 * Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance. 768 769 * @param array $hook_extra { 769 770 * Array of bulk item update data. 770 771 * 771 * @type string $action Type of action. Default 'update'. 772 * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. 773 * @type bool $bulk Whether the update process is a bulk update. Default true. 774 * @type array $plugins Array of the basename paths of the plugins' main files. 775 * @type array $themes The theme slugs. 772 * @type string $action Type of action. Default 'update'. 773 * @type string $type Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'. 774 * @type bool $bulk Whether the update process is a bulk update. Default true. 775 * @type array $plugins Array of the basename paths of the plugins' main files. 776 * @type array $themes The theme slugs. 777 * @type array $translations $args { 778 * Array of translations updated. 779 * 780 * @type string $language Language updated (e.g., de_DE). 781 * @type string $version Version of asset updated. 782 * @type string $type plugin, theme, or core. 783 * @type string $slug Slug of plugin, theme, or default for WordPress. 784 * } 776 785 * } 777 786 */ 778 787 do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );