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 |
---|---|
121 | return new WP_Error( 'locked', $this->strings['locked'] ); |
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 | apply_filters( 'update_feedback', $download->get_error_message() ); |
131 |
|
132 | // Report this failure back to WordPress.org for debugging purposes. |
133 | wp_version_check( |
134 | array( |
135 | 'signature_failure_code' => $download->get_error_code(), |
136 | 'signature_failure_data' => $download->get_error_data(), |
137 | ) |
138 | ); |
139 |
|
Line | Code |
184 | } elseif ( false !== strpos( $error_code, '__copy_dir' ) ) { |
185 | $try_rollback = true; |
186 | } elseif ( 'disk_full' === $error_code ) { |
187 | $try_rollback = true; |
188 | } |
189 | } |
190 |
|
191 | if ( $try_rollback ) { |
192 | /** This filter is documented in wp-admin/includes/update-core.php */ |
193 | apply_filters( 'update_feedback', $result ); |
194 |
|
195 | /** This filter is documented in wp-admin/includes/update-core.php */ |
196 | apply_filters( 'update_feedback', $this->strings['start_rollback'] ); |
197 |
|
198 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
199 |
|
200 | $original_result = $result; |
201 | $result = new WP_Error( |
202 | 'rollback_was_required', |
203 | $this->strings['rollback_was_required'], |
204 | (object) array( |
205 | 'update' => $original_result, |