Core Function
View Source on Trac ↗ update_core()
update_core( mixed $from, mixed $to ) Upgrades the core of WordPress.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $from string | New release unzipped path. Required |
| $to string | Path to old WordPress installation. Required |
Return Value
((string)
| WP_Error) New WordPress version on success, WP_Error on failure.
Function Information
Since Version
2.7.0
Source File
wp-admin/includes/update-core.php
Advertisement