Changeset 41289 for trunk/src/wp-admin/includes/class-theme-upgrader.php
- Timestamp:
- 08/22/2017 11:51:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-upgrader.php
r41161 r41289 55 55 56 56 /** 57 * Initialize the install strings.57 * Initialize the installation strings. 58 58 * 59 59 * @since 2.8.0 60 60 */ 61 61 public function install_strings() { 62 $this->strings['no_package'] = __('Install package not available.');63 $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>…');62 $this->strings['no_package'] = __('Installation package not available.'); 63 $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>…'); 64 64 $this->strings['unpack_package'] = __('Unpacking the package…'); 65 65 $this->strings['installing_package'] = __('Installing the theme…'); 66 66 $this->strings['no_files'] = __('The theme contains no files.'); 67 $this->strings['process_failed'] = __('Theme install failed.');67 $this->strings['process_failed'] = __('Theme installation failed.'); 68 68 $this->strings['process_success'] = __('Theme installed successfully.'); 69 69 /* translators: 1: theme name, 2: version */ … … 111 111 if ( ! $api || is_wp_error($api) ) { 112 112 $this->skin->feedback( 'parent_theme_not_found', $theme_info->get('Template') ); 113 // Don't show activate or preview actions after install 113 // Don't show activate or preview actions after installation 114 114 add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') ); 115 115 return $install_result; … … 181 181 * } 182 182 * 183 * @return bool|WP_Error True if the install was successful, false or a WP_Error object otherwise.183 * @return bool|WP_Error True if the installation was successful, false or a WP_Error object otherwise. 184 184 */ 185 185 public function install( $package, $args = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.