Changeset 45655 for trunk/src/wp-includes/nav-menu.php
- Timestamp:
- 07/17/2019 06:44:56 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/nav-menu.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r44167 r45655 457 457 $original_parent = 0 < $menu_item_db_id ? get_post_field( 'post_parent', $menu_item_db_id ) : 0; 458 458 459 if ( 'custom' != $args['menu-item-type'] ) { 460 /* if non-custom menu item, then: 461 * use original object's URL 462 * blank default title to sync with original object's 463 */ 459 if ( 'custom' === $args['menu-item-type'] ) { 460 // If custom menu item, trim the URL. 461 $args[ 'menu-item-url' ] = trim( $args[ 'menu-item-url' ] ); 462 } else { 463 /* 464 * If non-custom menu item, then: 465 * - use the original object's URL. 466 * - blank default title to sync with the original object's title. 467 */ 464 468 465 469 $args['menu-item-url'] = '';
Note: See TracChangeset
for help on using the changeset viewer.