| @@ -23,10 +23,8 @@ | ||
| 23 | 23 | * |
| 24 | 24 | * @since 3.04.02 |
| 25 | 25 | * |
| 26 | 26 | * @param object $upgrader The upgrader object (passed by reference). |
| 27 | - * | |
| 28 | - * @return void | |
| 29 | 27 | */ |
| 30 | 28 | public function set_upgrader( &$upgrader ) { |
| 31 | 29 | if ( is_object( $upgrader ) ) { |
| 32 | 30 | $this->upgrader =& $upgrader; |
| @@ -38,10 +36,8 @@ | ||
| 38 | 36 | * |
| 39 | 37 | * @since 3.04.02 |
| 40 | 38 | * |
| 41 | 39 | * @param object $result The result of the install process. |
| 42 | - * | |
| 43 | - * @return void | |
| 44 | 40 | */ |
| 45 | 41 | public function set_result( $result ) { |
| 46 | 42 | $this->result = $result; |
| 47 | 43 | } |
| @@ -66,9 +62,9 @@ | ||
| 66 | 62 | * back to the Ajax script for processing. |
| 67 | 63 | * |
| 68 | 64 | * @since 3.04.02 |
| 69 | 65 | * |
| 70 | - * @param string|\WP_Error $errors The WP Error object of errors with the install process. | |
| 66 | + * @param object|string $errors The WP Error object of errors with the install process. | |
| 71 | 67 | */ |
| 72 | 68 | public function error( $errors ) { |
| 73 | 69 | if ( ! empty( $errors ) ) { |
| 74 | 70 | if ( ! is_string( $errors ) ) { |
| @@ -82,9 +78,8 @@ | ||
| 82 | 78 | 'message' => $errors, |
| 83 | 79 | 'success' => false, |
| 84 | 80 | ) |
| 85 | 81 | ); |
| 86 | - | |
| 87 | 82 | if ( wp_doing_ajax() ) { |
| 88 | 83 | wp_die(); |
| 89 | 84 | } else { |
| 90 | 85 | die(); |