Make WordPress Core


Ignore:
Timestamp:
11/21/2014 03:16:08 AM (10 years ago)
Author:
boonebgorges
Message:

Improve cleanup of cached term_ids after shared terms are split.

  • If the split term ID is stored as 'default_category', 'default_link_category', or 'default_email_category', update it to the new ID.
  • If the split term ID is associated with a nav menu item, update that piece of postmeta to the new ID.

Props mboynes.
See #30335.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r30155 r30494  
    307307add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
    308308
     309// Split term updates
     310add_filter( 'split_shared_term', '_wp_check_split_default_terms',  10, 4 );
     311add_filter( 'split_shared_term', '_wp_check_split_terms_in_menus', 10, 4 );
     312
    309313unset($filter, $action);
Note: See TracChangeset for help on using the changeset viewer.