Opened 12 years ago
Closed 11 years ago
#19179 closed enhancement (fixed)
Unused code in WP_Widget_Links
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | trivial | Version: | 3.2 |
Component: | Widgets | Keywords: | has-patch |
Focuses: | Cc: |
Description
As reported by pavelevap in #18096:
In Links widget there are two places with the same string, but I could not simulate to display one of them on my testing website?
if ( is_admin() && !$category ) { // Display All Links widget as such in the widgets screen echo $before_widget . $before_title. __('All Links') . $after_title . $after_widget; return; }
This code was introduced in [10896] as a part of the fix for #9449. It doesn't make much sense, since the function is never called in the admin.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Thank you, Sergey.