Opened 6 years ago
Closed 6 years ago
#49967 closed defect (bug) (fixed)
Remove never-used commented out code in nav-menus.php update add menu block
| Reported by: | garrett-eclipse | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | Menus | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | coding-standards |
Description (last modified by )
Hello,
While working on #44286 I noticed there was a piece of commented out code;
<?php // $messages[] = '<div id="message" class="updated"><p>' . sprintf( __( '<strong>%s</strong> has been created.' ), $nav_menu_selected_title ) . '</p></div>';
Looking into it the piece of code was only used in a patch that never saw the light of day, instead in changeset [23810] for ticket #23770 it was added already commented out.
This code isn't needed as directly after it a wp_redirect is run so the message handler never executes in this case.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to remove unneeded commented out code.