You appear to be a bot. Output may be restricted
Description
Implement "upgrader_package_options" for allow-reinstallsSee @link https://core.trac.wordpress.org/ticket/27754/
Usage
$array = allow_reinstalls_upgrader_package_options( $options );
Parameters
- $options
- ( array ) required – { Options used by the upgrader.
- $package
- ( string ) required – Package for update.
- $destination
- ( string ) required – Update location.
- $clear_destination
- ( bool ) required – Clear the destination resource.
- $clear_working
- ( bool ) required – Clear the working resource.
- $abort_if_destination_exists
- ( bool ) required – Abort if the Destination directory exists.
- $is_multi
- ( bool ) required – Whether the upgrader is running multiple times.
- $hook_extra
- ( array ) required – Extra hook arguments. }
Returns
array updated with "abort_if_destination_exists" to falseSource
File name: allow-reinstalls/allow-reinstalls.phpLines:
1 to 4 of 4
function allow_reinstalls_upgrader_package_options( $options ) { $options['abort_if_destination_exists'] = false; return( $options ); }View on GitHub View on Trac