[wp-trac] [WordPress Trac] #19179: Unused code in WP_Widget_Links

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 6 20:00:55 UTC 2011


#19179: Unused code in WP_Widget_Links
----------------------------+-----------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Widgets         |    Version:  3.2
 Severity:  trivial         |   Keywords:  has-patch
----------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19179>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list