Changeset 31090 for trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
- Timestamp:
- 01/08/2015 07:04:40 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r30680 r31090 448 448 } 449 449 450 if ( 'import' == $from ) 450 if ( 'import' == $from ) { 451 451 $install_actions['importers_page'] = '<a href="' . admin_url('import.php') . '" title="' . esc_attr__('Return to Importers') . '" target="_parent">' . __('Return to Importers') . '</a>'; 452 else if ( $this->type == 'web' )452 } elseif ( $this->type == 'web' ) { 453 453 $install_actions['plugins_page'] = '<a href="' . self_admin_url('plugin-install.php') . '" title="' . esc_attr__('Return to Plugin Installer') . '" target="_parent">' . __('Return to Plugin Installer') . '</a>'; 454 else454 } else { 455 455 $install_actions['plugins_page'] = '<a href="' . self_admin_url('plugins.php') . '" title="' . esc_attr__('Return to Plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>'; 456 } 456 457 457 458 if ( ! $this->result || is_wp_error($this->result) ) { … … 732 733 */ 733 734 public function feedback( $data ) { 734 if ( is_wp_error( $data ) ) 735 if ( is_wp_error( $data ) ) { 735 736 $string = $data->get_error_message(); 736 else if ( is_array( $data ) )737 return; 738 else737 } elseif ( is_array( $data ) ) { 738 return; 739 } else { 739 740 $string = $data; 740 741 } 741 742 if ( ! empty( $this->upgrader->strings[ $string ] ) ) 742 743 $string = $this->upgrader->strings[ $string ];
Note: See TracChangeset
for help on using the changeset viewer.