[buddypress-trac] [BuddyPress Trac] #5757: Add a "data-timestamp" attribute to all templates requiring timestamps
buddypress-trac
noreply at wordpress.org
Thu Sep 10 18:38:47 UTC 2015
#5757: Add a "data-timestamp" attribute to all templates requiring timestamps
------------------------------+-----------------------------
Reporter: r-a-y | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Component - Core | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
------------------------------+-----------------------------
Comment (by boonebgorges):
> It is possible to load translations into MomentJS via
wp_localize_script
Awesome. Bonus: I think that all the strings we'd need for our use of
moment.js are already in our language pack: '%s ago', and the '%s
seconds/minutes/hours/days/months/years' strings. So it'd probably work in
all supported languages without additional translation.
> But, we can explore this in 2.4 if we want
if there's dev time to do it, I think we should. It looks to me like the
plugin is extremely simple. I'd suggest that this utility *not* be part of
buddypress.js, as it's not really theme-dependent and IMO there's no
reason to tie it to bp-legacy.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5757#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list