WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
| Line | Code |
|---|---|
| 122 | } |
| 123 | |
| 124 | $download = $this->download_package( $current->packages->$to_download, true ); |
| 125 | |
| 126 | // Allow for signature soft-fail. |
| 127 | // WARNING: This may be removed in the future. |
| 128 | if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) { |
| 129 | // Outout the failure error as a normal feedback, and not as an error: |
| 130 | /** This filter is documented in wp-admin/includes/update-core.php */ |
| 131 | apply_filters( 'update_feedback', $download->get_error_message() ); |
| 132 | |
| 133 | // Report this failure back to WordPress.org for debugging purposes. |
| 134 | wp_version_check( |
| 135 | array( |
| 136 | 'signature_failure_code' => $download->get_error_code(), |
| 137 | 'signature_failure_data' => $download->get_error_data(), |
| 138 | ) |
| 139 | ); |
| 140 | |
| Line | Code |
| 185 | } elseif ( false !== strpos( $error_code, '__copy_dir' ) ) { |
| 186 | $try_rollback = true; |
| 187 | } elseif ( 'disk_full' === $error_code ) { |
| 188 | $try_rollback = true; |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | if ( $try_rollback ) { |
| 193 | /** This filter is documented in wp-admin/includes/update-core.php */ |
| 194 | apply_filters( 'update_feedback', $result ); |
| 195 | |
| 196 | /** This filter is documented in wp-admin/includes/update-core.php */ |
| 197 | apply_filters( 'update_feedback', $this->strings['start_rollback'] ); |
| 198 | |
| 199 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
| 200 | |
| 201 | $original_result = $result; |
| 202 | $result = new WP_Error( |
| 203 | 'rollback_was_required', |
| 204 | $this->strings['rollback_was_required'], |
| 205 | (object) array( |
| 206 | 'update' => $original_result, |