Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Previous code for theme_links() gave only 'first' OR 'last' to each list element. But if there is only one item in the list, then it is both the first AND the last item and should have *both* classes. This patch fixes this problem.
Comment | File | Size | Author |
---|---|---|---|
#4 | li-first-and-last_0.patch | 900 bytes | ChrisKennedy |
li-first-and-last.patch | 745 bytes | jjeff | |
Comments
Comment #1
jjeff CreditAttribution: jjeff commentedFor reference:
http://drupal.org/node/89818
Comment #2
edmund.kwok CreditAttribution: edmund.kwok commentedComment #3
coreb CreditAttribution: coreb commentedMoving out of the "x.y.z" queue to a real queue.
Comment #4
ChrisKennedy CreditAttribution: ChrisKennedy commentedWorks fine.
Minor tweaks in the updated patch: synced with HEAD, re-rolled from root, added period to the comment, and fixed potential E_ALL warning.
Comment #5
drummCommitted to HEAD.
Comment #6
(not verified) CreditAttribution: commented