Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: upgrader_process_complete

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
174
175                     $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) );
176
177                     $original_result = $result;
178                     $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) );
179                }
180           }
181
182           /** This action is documented in wp-admin/includes/class-wp-upgrader.php */
183           do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) );
184
185           // Clear the current updates
186           delete_site_transient( 'update_core' );
187
188           if ( ! $parsed_args['do_rollback'] ) {
189                $stats = array(
190                     'update_type'      => $current->response,
191                     'success'          => true,
192                     'fs_method'        => $wp_filesystem->method,