Make WordPress Core

Changeset 61890


Ignore:
Timestamp:
03/10/2026 01:25:02 PM (5 weeks ago)
Author:
johnbillion
Message:

Customize: Update a test that covers special characters in category names in nav menus.

This should have been committed in [61883] but got missed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/nav-menu.php

    r58854 r61890  
    11891189        );
    11901190
     1191        $this->assertSame( 'Test Cat - "Pre-Slashed" Cat Name & >', $category->name );
     1192
    11911193        $category_item_id = wp_update_nav_menu_item(
    11921194            $this->menu_id,
     
    11971199                'menu-item-object-id' => $category->term_id,
    11981200                'menu-item-status'    => 'publish',
    1199                 /*
    1200                  * Interestingly enough, if we use `$cat->name` for the menu item title,
    1201                  * we won't be able to replicate the bug because it's in htmlentities form.
    1202                  */
    1203                 'menu-item-title'     => $category_name,
     1201                'menu-item-title'     => $category->name,
    12041202            )
    12051203        );
Note: See TracChangeset for help on using the changeset viewer.