[wp-trac] [WordPress Trac] #62165: New wp_get_wp_version() might not be available during update
WordPress Trac
noreply at wordpress.org
Fri Oct 4 20:05:25 UTC 2024
#62165: New wp_get_wp_version() might not be available during update
-----------------------------+---------------------
Reporter: djennez | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Upgrade/Install | Version: trunk
Severity: critical | Resolution:
Keywords: | Focuses:
-----------------------------+---------------------
Comment (by azaozz):
Replying to [comment:3 jorbin]:
> As for the fix, I think we should do a `require ABSPATH . WPINC.
'/version.php';` in the two places in `wp-admin/includes/update-core.php`
that were modified in [59159].
Right, Iif I remember correctly when WP is being updated the new `update-
core.php` runs in the old version so it cannot contain calls to newly
introduced functions. Removing the two calls to `wp_get_wp_version()`
would fix this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62165#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list