Opened 4 months ago
Closed 4 months ago
#65403 closed enhancement (fixed)
Code Quality: Admin Bar - Simplify node retrieval using null coalescing operator
| Reported by: | Soean | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.1 |
| Component: | Toolbar | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description (last modified by )
WP_Admin_Bar->_get_node() returns an object or null since r62178. Now we can use the null coalescing operator and simplify the code.
Change History (7)
This ticket was mentioned in PR #11468 on WordPress/wordpress-develop by @Soean.
4 months ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
WP_Admin_Bar->_get_node()returns an object ornullsince r62178. So we should use the null coalescing operator and simplify the code.Trac ticket: https://core.trac.wordpress.org/ticket/65403