[wp-trac] [WordPress Trac] #30261: Split all existing shared taxonomy terms on WP upgrade
WordPress Trac
noreply at wordpress.org
Mon Aug 17 22:00:53 UTC 2015
#30261: Split all existing shared taxonomy terms on WP upgrade
--------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: enhancement | Status: reopened
Priority: high | Milestone: 4.3
Component: Taxonomy | Version:
Severity: blocker | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------------
Changes (by pento):
* keywords: has-patch => needs-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:85 boonebgorges]:
> Unless I'm missing something, `upgrade_430()` should be a fine place to
do this. See [attachment:30261.21.diff].
It needs to be in `pre_schema_upgrade()`.
`upgrade_430()` is called from `upgrade_all()`, which is called from
`wp_upgrade()` after `pre_schema_upgrade()`.
Before `upgrade_all()` calls the `upgrade_*()` functions, it calls
`populate_options()`, which will pre-fill with
`'finished_splitting_shared_terms' => 1`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30261#comment:87>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list