[wp-trac] Re: [WordPress Trac] #2592: Add selected list of categories option to function get_bookmarks()

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 23 16:35:10 GMT 2006


#2592: Add selected list of categories option to function get_bookmarks()
----------------------------+-----------------------------------------------
       Id:  2592            |      Status:  new                     
Component:  Administration  |    Modified:  Thu Mar 23 16:35:10 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.1                     
    Owner:  MichaelH        |    Reporter:  MichaelH                
----------------------------+-----------------------------------------------
Changes (by MichaelH):

  * keywords:  bookmarks => bookmarks has-patch bg|needs testing

Comment:

 Patch to function get_bookmarks(), allows a parameter such as
 'category=1,3,7' to return only bookmarks belonging to those three
 categories.

 Also, changed so that {{{$category = ''}}} returns ALL categories
 (previously, {{{$category = -1}}}  returned ALL).  This required adding
 line in get_links() to pass $category correctly when calling
 get_bookmarks().

 Also fixed problem in get_links_list() to report bookmarks that only
 belong to a "child category" by adding &hierarchial=0 to the parameter
 list when calling get_categories().

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


More information about the wp-trac mailing list