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 2 times in this file.
Line | Code |
---|---|
2047 | $try_rollback = true; |
2048 | elseif ( false !== strpos( $error_code, '__copy_dir' ) ) |
2049 | $try_rollback = true; |
2050 | elseif ( 'disk_full' === $error_code ) |
2051 | $try_rollback = true; |
2052 | } |
2053 |
|
2054 | if ( $try_rollback ) { |
2055 | /** This filter is documented in wp-admin/includes/update-core.php */ |
2056 | apply_filters( 'update_feedback', $result ); |
2057 |
|
2058 | /** This filter is documented in wp-admin/includes/update-core.php */ |
2059 | apply_filters( 'update_feedback', $this->strings['start_rollback'] ); |
2060 |
|
2061 | $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); |
2062 |
|
2063 | $original_result = $result; |
2064 | $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) ); |
2065 | } |
2066 | } |
2067 |
|
2068 | /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ |