Opened 20 years ago
Closed 19 years ago
#1369 closed defect (bug) (invalid)
wp_list_pages() shows blank list item when no title is wanted.
Reported by: | anonymousbugger | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.5.1 |
Component: | Template | Keywords: | |
Focuses: | Cc: |
Description
When calling "wp_list_pages('title_li= ');" is called, a list item is still added without any content. I don't think this item should appear as it makes an unnessecary space appear in most templates.
I doubt this is by design.
Change History (3)
Note: See
TracTickets for help on using
tickets.
this line also needs to be changed:
355: if ( $rtitle_li? )
to
355: if ( $rtitle_li? && !$rtitle_li? == ' ' )