Opened 11 months ago
Last modified 10 months ago
#9062 assigned enhancement
Emails default footer text should not hard-code year and site title
Reported by: | slaFFik | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Contributions | Priority: | low |
Severity: | normal | Version: | |
Component: | Emails | Keywords: | needs-patch |
Cc: |
Description
Right now it's:
© 2024 Site Title
In reality (IMO) it should be something like this:
© {{currentyear}} {{site.title}}
This will make it dynamic and admins won't need to update it every year and every time they change the site title.
this is an opportunity to add other email tags:
site.title
site.tagline
site.url
- etc
Change History (3)
Note: See
TracTickets for help on using
tickets.
I took a look at this and this is how it currently works. The date and site's title are added dynamically. However, the user has the choice of changing the footer text in the customizer.
Regarding the request to add new tokens in the Footer text field?!, I think this is a good idea. But just to be realistic, it is not our focus with this milestone.
If you could send a patch or a pr, I'd be happy to look into this. If not, better to punt it so that it is done together with other email-related work in the future.