Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dreprecate bp-moment JS dependency in favor of WP’s moment one #39

Closed
wants to merge 1 commit into from

Conversation

imath
Copy link
Member

@imath imath commented Nov 15, 2022

This PR simply & softly deprecates bp-moment JS dependency. That being said, as bp-moment is only used by bp-livestamp to live update human dates/time diff on the website, we could simply remove this dependency and save ~ 740 KB (see https://github.com/buddypress/buddypress/tree/master/src/bp-core/js/vendor/moment-js). Consequence would be the people using a WordPress version < 5.0 (a very limited population, see https://wordpress.org/about/stats/) would not enjoy this live updating feature anymore..

Trac ticket: https://buddypress.trac.wordpress.org/ticket/8766


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

@imath imath self-assigned this Nov 15, 2022
thebrandonallen pushed a commit to thebrandonallen/buddypress that referenced this pull request Nov 24, 2022
Doing so is taking care of using a fresher version of moment.js (v2.29.4).

Props thomaslhotta, dcavins

Closes buddypress/buddypress#39
Fixes #8766



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13373 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
dcavins pushed a commit to dcavins/buddypress-wp-svn that referenced this pull request Feb 13, 2023
Doing so is taking care of using a fresher version of moment.js (v2.29.4).

Props thomaslhotta, dcavins

Closes buddypress/buddypress#39
Fixes #8766



git-svn-id: http://buddypress.svn.wordpress.org/trunk@13373 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
@imath imath deleted the patch/8766 branch April 6, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant