Opened 8 years ago
Last modified 6 years ago
#37461 new enhancement
Introduce get_the_title_attribute() to wrap the_title_attribute( 'echo=0' )
Reported by: | sillybean | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | Themes | Keywords: | |
Focuses: | template | Cc: |
Description
the_title_attribute( 'echo=0' ) is ugly and annoying given that all the other the_* template tags have corresponding get_* functions.
Patch adds get_title_attribute() as a simple wrapper function.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Previously mentioned in comment:28:ticket:24164 (as
get_the_title_attribute()
, which would follow our naming pattern more closely).