Changeset 56192 for trunk/src/wp-includes/nav-menu.php
- Timestamp:
- 07/10/2023 10:46:22 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r55962 r56192 548 548 } 549 549 550 // Associate the menu item with the menu term. 551 // Only set the menu term if it isn't set to avoid unnecessary wp_get_object_terms(). 550 /* 551 * Associate the menu item with the menu term. 552 * Only set the menu term if it isn't set to avoid unnecessary wp_get_object_terms(). 553 */ 552 554 if ( $menu_id && ( ! $update || ! is_object_in_term( $menu_item_db_id, 'nav_menu', (int) $menu->term_id ) ) ) { 553 555 $update_terms = wp_set_object_terms( $menu_item_db_id, array( $menu->term_id ), 'nav_menu' );
Note: See TracChangeset
for help on using the changeset viewer.