[wp-trac] [WordPress Trac] #4053: Function Style Parameters for
wp_list_bookmarks
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 31 03:11:29 GMT 2007
#4053: Function Style Parameters for wp_list_bookmarks
----------------------------+-----------------------------------------------
Reporter: Youngmicroserf | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.4
Component: Optimization | Version:
Severity: normal | Keywords: links, bookmarks, wp_list_bookmarks, linklists
----------------------------+-----------------------------------------------
It's currently impossible to legitimately pass CSS classes as part of the
"before" and "after" part of wp_list_bookmarks, as they need to be
enclosed in quotes and it is impossible to pass quotes through query style
parameters. Interestingly, passing unescaped double quotes actually works
to the intended effect in the browser, but creates severely messed up
markup that will never validate. So something like this won't work in the
current version -
{{{
wp_list_bookmarks('categorize=1&category=40&title_li&title_before=<h3>
&title_after</h3>&category_before=<div class="linkcategory-
abc">&category_after=</div>
&before=<li class="linkdesign-
xyz">&after=</li>&show_images=1&show_description=0&orderby=url');?>
}}}
it seems to me this is limiting the usability of wp_list_bookmarks as a
"one stop shop" to display custom link blocks.
--
Ticket URL: <http://trac.wordpress.org/ticket/4053>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list