[wp-trac] [WordPress Trac] #22216: Links widget does not display links if no Link Categories exist.

WordPress Trac noreply at wordpress.org
Thu Oct 18 01:36:27 UTC 2012


#22216: Links widget does not display links if no Link Categories exist.
-----------------------------+--------------------------
 Reporter:  mfields          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Widgets
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 Here are the steps I used to detect this running on the latest trunk:

 1. Ensure that the {{{'link_manager_enabled'}}} option has a value of "1".
 2. Ensure that no Link Categories exist (default behaviour after Step 1).
 3. Add a single link via Links -> Add New.
 4. Create an instance of the Links widget in the sidebar.
 5. View your site.

 At this stage, the Links widget should not display.

 I believe that this problem exists because there is no default link
 category. The dropdown element in the widget's UI labeled "Select Link
 Category" can only be set to "All links". When this happens,
 [http://core.trac.wordpress.org/browser/trunk/wp-includes/bookmark-
 template.php#L219 the query in wp_list_bookmarks()] returns no results.
 Prior to 3.5 there has always been a "Blogroll" Link Category which
 appears to have worked much like the default posts category. I think that
 the absence of a default Link Category may be part of the problem here.

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


More information about the wp-trac mailing list