[wp-trac] [WordPress Trac] #30261: Split all existing shared taxonomy terms on WP upgrade

WordPress Trac noreply at wordpress.org
Wed Aug 12 18:45:34 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:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------

Comment (by boonebgorges):

 Replying to [comment:40 Chouby]:
 > The approach above fails with the current `split_all_shared_terms()` as
 terms splitted in Polylang are not taken into account by the core function
 and I ended up with new terms having no language and no translation group.

 Can you explain this in more detail? When you say "not taken into
 account", are you referring to the WP_INSTALLING problem, ie that plugins
 are not loaded? The goal here is to make your 4.2 version - using the
 'split_shared_term' hook - work for 4.3 as well.

 > For this I now hook to update_option__split_terms and
 add_option__split_terms and create new translations groups *only* for
 terms which have just been splitted

 This seems very fragile. Am I correct that you're only doing this because
 of the bug described in this ticket?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30261#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list