Opened 10 years ago
Last modified 7 years ago
#37461 new enhancement
Introduce get_the_title_attribute() to wrap the_title_attribute( 'echo=0' )
| Reported by: | sillybean | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Themes | Version: | 4.6 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | template |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Previously mentioned in comment:28:ticket:24164 (as
get_the_title_attribute(), which would follow our naming pattern more closely).