$start_time =
time();
$defaults = array
( 'pre_check_md5' => true,
'attempt_rollback' => false,
'do_rollback' => false,
'allow_relaxed_file_ownership' => false,
);
$parsed_args =
wp_parse_args( $args,
$defaults );
$this->
init();
$this->
upgrade_strings();
// Is an update available?
if ( !
isset( $current->response
) || 'latest' ===
$current->response
) { return new WP_Error( 'up_to_date',
$this->strings
['up_to_date'
] );
} $res =
$this->
fs_connect( array
( ABSPATH, WP_CONTENT_DIR
),
$parsed_args['allow_relaxed_file_ownership'
] );
if ( !
$res ||
is_wp_error( $res ) ) { return $res;
}