Function __global->upgrade_theme
Definitions
sources/upgrade_themes.php
- Upgrade a theme automatically, using hand-coded migration arrays.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$theme | ID_TEXT | required parameter | N/A | N/A | Theme to be upgraded |
$from_version | float | required parameter | N/A | N/A | From version |
$to_version | float | required parameter | N/A | N/A | Target version |
$test_run | boolean | True | N/A | N/A | Whether executing a test run (i.e. not do anything) |
Return
- A pair: List of errors, List of successes
- Type: array
- Set: N/A
- Range: N/A