Skip to content

Commit fac2432

Browse files
authored
Merge pull request #2136 from rtCamp/develop
Version Update v4.6.23
2 parents 593e63d + 30cd462 commit fac2432

File tree

12 files changed

+3741
-1423
lines changed

12 files changed

+3741
-1423
lines changed

.github/workflows/playwright.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- wp-e2e-playwright
1111
- develop
1212
- master
13-
1413
# Allows you to run this workflow manually from the Actions tab
1514
workflow_dispatch:
1615

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.16.1
1+
v20.18.1

Gruntfile.js

+63-156
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,72 @@
1-
'use strict';
2-
module.exports = function ( grunt ) {
1+
module.exports = function (grunt) {
2+
require('load-grunt-tasks')(grunt);
33

4-
// load all grunt tasks matching the `grunt-*` pattern
5-
// Ref. https://npmjs.org/package/load-grunt-tasks
6-
require( 'load-grunt-tasks' )( grunt );
7-
8-
grunt.initConfig( {
9-
// watch for changes and trigger sass, jshint, uglify and livereload
10-
watch: {
4+
grunt.initConfig({
5+
watch: {
116
sass: {
12-
files: [ 'app/assets/admin/css/sass/**/*.{scss,sass}', 'app/assets/css/sass/**/*.{scss,sass}' ],
13-
tasks: [ 'sass' ]
7+
files: ['app/assets/admin/css/sass/**/*.{scss,sass}', 'app/assets/css/sass/**/*.{scss,sass}'],
8+
tasks: ['sass']
149
},
15-
autoprefixer: {
16-
files: [ 'app/assets/admin/css/*.css', 'app/assets/css/*css' ],
17-
tasks: [ 'autoprefixer' ]
10+
postcss: {
11+
files: ['app/assets/admin/css/*.css', 'app/assets/css/*.css'],
12+
tasks: ['shell:postcss']
1813
},
1914
js: {
20-
files: [ '<%= uglify.frontend.src %>', '<%= uglify.backend.src %>' ],
21-
tasks: [ 'uglify' ]
22-
},
23-
livereload: {
24-
// Here we watch the files the sass task will compile to
25-
// These files are sent to the live reload server after sass compiles to them
26-
options: { livereload: true },
27-
files: [ '*.php', '*.css' ]
28-
}
29-
},
30-
// sass
31-
sass: {
32-
dist: {
33-
options: {
34-
style: 'expanded',
35-
sourceMap: false
36-
},
37-
files: {
38-
'app/assets/admin/css/admin.css': 'app/assets/admin/css/sass/admin.scss',
39-
'app/assets/admin/css/widget.css': 'app/assets/admin/css/sass/widget.scss',
40-
'app/assets/css/rtmedia.css': 'app/assets/css/sass/rtmedia.scss',
41-
}
42-
},
43-
minify: {
44-
options: {
45-
style: 'compressed',
46-
sourceMap: false
47-
},
48-
files: {
49-
'app/assets/admin/css/admin.min.css': 'app/assets/admin/css/sass/admin.scss',
50-
'app/assets/admin/css/widget.min.css': 'app/assets/admin/css/sass/widget.scss',
51-
'app/assets/css/rtmedia.min.css': 'app/assets/css/sass/rtmedia.scss',
52-
'app/assets/css/rtm-upload-terms.min.css': 'app/assets/css/rtm-upload-terms.css',
53-
'app/assets/admin/css/rtm-upload-terms.min.css': 'app/assets/css/rtm-upload-terms.css'
54-
}
15+
files: ['app/assets/js/rtMedia.js', 'app/assets/admin/js/scripts.js'],
16+
tasks: ['terser']
5517
}
5618
},
57-
// autoprefixer
58-
autoprefixer: {
59-
dist: {
60-
options: {
61-
browsers: [ 'last 2 versions', 'ie 9', 'ios 6', 'android 4' ],
62-
expand: true,
63-
flatten: true
64-
},
65-
files: {
66-
'app/assets/admin/css/admin.css': 'app/assets/admin/css/admin.css',
67-
'app/assets/admin/css/admin.min.css': 'app/assets/admin/css/admin.min.css',
68-
'app/assets/admin/css/widget.css': 'app/assets/admin/css/widget.css',
69-
'app/assets/admin/css/widget.min.css': 'app/assets/admin/css/widget.min.css',
70-
'app/assets/css/rtmedia.css': 'app/assets/css/rtmedia.css',
71-
'app/assets/css/rtmedia.min.css': 'app/assets/css/rtmedia.min.css'
72-
}
73-
}
74-
},
75-
// Uglify Ref. https://npmjs.org/package/grunt-contrib-uglify
76-
uglify: {
77-
options: {
78-
banner: '/*! \n * rtMedia JavaScript Library \n * @package rtMedia \n */\n',
79-
},
80-
frontend: {
81-
src: [
82-
'app/assets/js/vendors/magnific-popup.js',
83-
'app/assets/admin/js/vendors/tabs.js',
84-
'app/assets/js/rtMedia.js',
85-
],
86-
dest: 'app/assets/js/rtmedia.min.js'
87-
},
88-
rtmUploadTerms: {
89-
src: [
90-
'app/assets/js/rtm-upload-terms.js',
91-
],
92-
dest: 'app/assets/js/rtm-upload-terms.min.js'
93-
},
94-
adminUploadTerms: {
95-
src: [
96-
'app/assets/js/admin-upload-terms.js'
97-
],
98-
dest: 'app/assets/js/admin-upload-terms.min.js'
99-
},
100-
backend: {
101-
src: [
102-
'app/assets/admin/js/vendors/tabs.js',
103-
'app/assets/admin/js/scripts.js',
104-
'app/assets/admin/js/settings.js'
105-
],
106-
dest: 'app/assets/admin/js/admin.min.js'
107-
}
108-
},
109-
checktextdomain: {
110-
options: {
111-
text_domain: 'buddypress-media', //Specify allowed domain(s)
112-
keywords: [ //List keyword specifications
113-
'__:1,2d',
114-
'_e:1,2d',
115-
'_x:1,2c,3d',
116-
'esc_html__:1,2d',
117-
'esc_html_e:1,2d',
118-
'esc_html_x:1,2c,3d',
119-
'esc_attr__:1,2d',
120-
'esc_attr_e:1,2d',
121-
'esc_attr_x:1,2c,3d',
122-
'_ex:1,2c,3d',
123-
'_n:1,2,4d',
124-
'_nx:1,2,4c,5d',
125-
'_n_noop:1,2,3d',
126-
'_nx_noop:1,2,3c,4d'
127-
]
128-
},
129-
target: {
130-
files: [ {
131-
src: [
132-
'*.php',
133-
'**/*.php',
134-
'!node_modules/**',
135-
'!tests/**'
136-
], //all php
137-
expand: true
138-
} ]
139-
}
140-
},
141-
makepot: {
142-
target: {
143-
options: {
144-
cwd: '.', // Directory of files to internationalize.
145-
domainPath: 'languages/', // Where to save the POT file.
146-
exclude: [ 'node_modules/*' ], // List of files or directories to ignore.
147-
mainFile: 'index.php', // Main project file.
148-
potFilename: 'buddypress-media.po', // Name of the POT file.
149-
potHeaders: { // Headers to add to the generated POT file.
150-
poedit: true, // Includes common Poedit headers.
151-
'Last-Translator': 'rtMedia <[email protected]>',
152-
'Language-Team': 'rtMedia <[email protected]>',
153-
'report-msgid-bugs-to': 'https://rtmedia.io/support/',
154-
'x-poedit-keywordslist': true // Include a list of all possible gettext functions.
155-
},
156-
type: 'wp-plugin', // Type of project (wp-plugin or wp-theme).
157-
updateTimestamp: true // Whether the POT-Creation-Date should be updated without other changes.
158-
}
159-
}
160-
}
16119

162-
} );
163-
// register task
164-
grunt.registerTask( 'default', [ 'sass', 'autoprefixer', 'uglify', 'checktextdomain', 'makepot', 'watch' ] );
20+
21+
sass: {
22+
dist: {
23+
options: {
24+
style: 'expanded',
25+
sourceMap: false
26+
},
27+
files: {
28+
'app/assets/admin/css/admin.css': 'app/assets/admin/css/sass/admin.scss',
29+
'app/assets/css/rtmedia.css': 'app/assets/css/sass/rtmedia.scss',
30+
}
31+
},
32+
minify: {
33+
options: {
34+
style: 'compressed',
35+
sourceMap: false
36+
},
37+
files: {
38+
'app/assets/admin/css/admin.min.css': 'app/assets/admin/css/sass/admin.scss',
39+
'app/assets/css/rtmedia.min.css': 'app/assets/css/sass/rtmedia.scss',
40+
}
41+
}
42+
},
43+
44+
shell: {
45+
postcss: {
46+
command: 'npx postcss app/assets/admin/css/*.css app/assets/css/*.css --config postcss.config.js --replace'
47+
}
48+
},
49+
50+
terser: {
51+
options: {
52+
format: {
53+
comments: false // Removes comments from minified files
54+
}
55+
},
56+
frontend: {
57+
files: {
58+
'app/assets/js/rtmedia.min.js': ['app/assets/js/rtMedia.js']
59+
}
60+
},
61+
backend: {
62+
files: {
63+
'app/assets/admin/js/admin.min.js': ['app/assets/admin/js/scripts.js']
64+
}
65+
}
66+
}
67+
});
68+
69+
// Register tasks
70+
grunt.registerTask('default', ['sass', 'shell:postcss', 'terser', 'watch']);
71+
grunt.registerTask('build', ['sass:minify', 'shell:postcss', 'terser']);
16572
};

README.md

100755100644
+11-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & mor
1111
![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=MU1JamdmRnppK0hhQy9QMU8wdDJ2MUEyb1ZuS0ljVFQvSHZ6anFvNzUxTT0tLXhUNnliTnZGcE5CcW93N0I1eXdnM3c9PQ==--8c124e667dd0c317618efde1bed2b260000916b6)
1212

1313

14-
* **Contributors:** [rtcamp](http://profiles.wordpress.org/rtcamp), [mangeshp](http://profiles.wordpress.org/mangeshp), [sanket.parmar](http://profiles.wordpress.org/sanket.parmar), [pranalipatel](http://profiles.wordpress.org/pranalipatel), [jignesh.nakrani](http://profiles.wordpress.org/jignesh.nakrani), [manishsongirkar36](http://profiles.wordpress.org/manishsongirkar36), [kiranpotphode](http://profiles.wordpress.org/kiranpotphode), [yahil](http://profiles.wordpress.org/yahil), [1naveengiri](http://profiles.wordpress.org/1naveengiri), [bhargavbhandari90](http://profiles.wordpress.org/bhargavbhandari90), [deepak1191](http://profiles.wordpress.org/deepak1191), [rittesh.patel](http://profiles.wordpress.org/rittesh.patel), [sagarjadhav](http://profiles.wordpress.org/sagarjadhav), [pushpak.pop](http://profiles.wordpress.org/pushpak.pop), [faishal](http://profiles.wordpress.org/faishal), [desaiuditd](http://profiles.wordpress.org/desaiuditd), [rahul286](http://profiles.wordpress.org/rahul286), [JoshuaAbenazer](http://profiles.wordpress.org/JoshuaAbenazer), [gagan0123](http://profiles.wordpress.org/gagan0123), [saurabhshukla](http://profiles.wordpress.org/saurabhshukla), [nitun.lanjewar](http://profiles.wordpress.org/nitun.lanjewar), [umesh.nevase](http://profiles.wordpress.org/umesh.nevase), [suhasgirgaonkar](http://profiles.wordpress.org/suhasgirgaonkar), [neerukoul](http://profiles.wordpress.org/neerukoul), [hrishiv90](http://profiles.wordpress.org/hrishiv90), [kanakiyajay](http://profiles.wordpress.org/kanakiyajay), [jarretc](http://profiles.wordpress.org/jarretc), [tobiaskluge](http://profiles.wordpress.org/tobiaskluge), [rafaelfunchal](http://profiles.wordpress.org/rafaelfunchal), [UmeshSingla](http://profiles.wordpress.org/UmeshSingla), [mehulkaklotar](http://profiles.wordpress.org/mehulkaklotar), [tannermirabel](http://profiles.wordpress.org/tannermirabel), [kishores](http://profiles.wordpress.org/kishores), [chandrapatel](http://profiles.wordpress.org/chandrapatel), [rahul3883](http://profiles.wordpress.org/rahul3883/), [nomnom99](http://profiles.wordpress.org/nomnom99), [sayanchakraborty](https://profiles.wordpress.org/sayanchakraborty), [milindmore22](https://profiles.wordpress.org/milindmore22), [thrijith](https://profiles.wordpress.org/thrijith), [abhijitrakas](https://profiles.wordpress.org/abhijitrakas), [sid177](https://profiles.wordpress.org/sid177), [montu3366](https://profiles.wordpress.org/montu3366), [jashwini](https://profiles.wordpress.org/jashwini), [juhise](https://profiles.wordpress.org/juhise), [ravatparmar](https://profiles.wordpress.org/ravatparmar), [dharmin16](https://profiles.wordpress.org/dharmin16), [malavvasita](https://profiles.wordpress.org/malavvasita), [pooja1210](https://profiles.wordpress.org/pooja1210), [krupajnanda](https://profiles.wordpress.org/krupajnanda), [kanumalivad](https://profiles.wordpress.org/kanumalivad), [surajkumarsingh](https://profiles.wordpress.org/surajkumarsingh), [dishitpala](https://profiles.wordpress.org/dishitpala), [shobhit2412](https://profiles.wordpress.org/shobhit2412/), [vkd007](https://profiles.wordpress.org/vkd007/), [vaishu.agola27](https://profiles.wordpress.org/vaishuagola27/), [kapilpaul](https://profiles.wordpress.org/kapilpaul/), [opurockey](https://profiles.wordpress.org/opurockey/), [pavanpatil1](https://profiles.wordpress.org/pavanpatil1/), [pradeep1308](https://profiles.wordpress.org/pradeep1308/), [shardul200](https://profiles.wordpress.org/shardul200/), [ibnulk](https://profiles.wordpress.org/ibnulk/), [sabbir1991](https://profiles.wordpress.org/sabbir1991/), [kamalahmed](https://profiles.wordpress.org/kamalahmed/), [harshbarach](https://profiles.wordpress.org/harshbarach/), [mukulsingh27](https://profiles.wordpress.org/mukulsingh27/), [vishalkakadiya](https://profiles.wordpress.org/vishalkakadiya/), [elifvish](https://profiles.wordpress.org/elifvish/), [krupajnanda](https://profiles.wordpress.org/krupajnanda/), [utsavladani](https://profiles.wordpress.org/utsavladani/),[krishana79] (https://profiles.wordpress.org/krishana79/)
14+
* **Contributors:** [rtcamp](http://profiles.wordpress.org/rtcamp), [mangeshp](http://profiles.wordpress.org/mangeshp), [sanket.parmar](http://profiles.wordpress.org/sanket.parmar), [pranalipatel](http://profiles.wordpress.org/pranalipatel), [jignesh.nakrani](http://profiles.wordpress.org/jignesh.nakrani), [manishsongirkar36](http://profiles.wordpress.org/manishsongirkar36), [kiranpotphode](http://profiles.wordpress.org/kiranpotphode), [yahil](http://profiles.wordpress.org/yahil), [1naveengiri](http://profiles.wordpress.org/1naveengiri), [bhargavbhandari90](http://profiles.wordpress.org/bhargavbhandari90), [deepak1191](http://profiles.wordpress.org/deepak1191), [rittesh.patel](http://profiles.wordpress.org/rittesh.patel), [sagarjadhav](http://profiles.wordpress.org/sagarjadhav), [pushpak.pop](http://profiles.wordpress.org/pushpak.pop), [faishal](http://profiles.wordpress.org/faishal), [desaiuditd](http://profiles.wordpress.org/desaiuditd), [rahul286](http://profiles.wordpress.org/rahul286), [JoshuaAbenazer](http://profiles.wordpress.org/JoshuaAbenazer), [gagan0123](http://profiles.wordpress.org/gagan0123), [saurabhshukla](http://profiles.wordpress.org/saurabhshukla), [nitun.lanjewar](http://profiles.wordpress.org/nitun.lanjewar), [umesh.nevase](http://profiles.wordpress.org/umesh.nevase), [suhasgirgaonkar](http://profiles.wordpress.org/suhasgirgaonkar), [neerukoul](http://profiles.wordpress.org/neerukoul), [hrishiv90](http://profiles.wordpress.org/hrishiv90), [kanakiyajay](http://profiles.wordpress.org/kanakiyajay), [jarretc](http://profiles.wordpress.org/jarretc), [tobiaskluge](http://profiles.wordpress.org/tobiaskluge), [rafaelfunchal](http://profiles.wordpress.org/rafaelfunchal), [UmeshSingla](http://profiles.wordpress.org/UmeshSingla), [mehulkaklotar](http://profiles.wordpress.org/mehulkaklotar), [tannermirabel](http://profiles.wordpress.org/tannermirabel), [kishores](http://profiles.wordpress.org/kishores), [chandrapatel](http://profiles.wordpress.org/chandrapatel), [rahul3883](http://profiles.wordpress.org/rahul3883/), [nomnom99](http://profiles.wordpress.org/nomnom99), [sayanchakraborty](https://profiles.wordpress.org/sayanchakraborty), [milindmore22](https://profiles.wordpress.org/milindmore22), [thrijith](https://profiles.wordpress.org/thrijith), [abhijitrakas](https://profiles.wordpress.org/abhijitrakas), [sid177](https://profiles.wordpress.org/sid177), [montu3366](https://profiles.wordpress.org/montu3366), [jashwini](https://profiles.wordpress.org/jashwini), [juhise](https://profiles.wordpress.org/juhise), [ravatparmar](https://profiles.wordpress.org/ravatparmar), [dharmin16](https://profiles.wordpress.org/dharmin16), [malavvasita](https://profiles.wordpress.org/malavvasita), [pooja1210](https://profiles.wordpress.org/pooja1210), [krupajnanda](https://profiles.wordpress.org/krupajnanda), [kanumalivad](https://profiles.wordpress.org/kanumalivad), [surajkumarsingh](https://profiles.wordpress.org/surajkumarsingh), [dishitpala](https://profiles.wordpress.org/dishitpala), [shobhit2412](https://profiles.wordpress.org/shobhit2412/), [vkd007](https://profiles.wordpress.org/vkd007/), [vaishu.agola27](https://profiles.wordpress.org/vaishuagola27/), [kapilpaul](https://profiles.wordpress.org/kapilpaul/), [opurockey](https://profiles.wordpress.org/opurockey/), [pavanpatil1](https://profiles.wordpress.org/pavanpatil1/), [pradeep1308](https://profiles.wordpress.org/pradeep1308/), [shardul200](https://profiles.wordpress.org/shardul200/), [ibnulk](https://profiles.wordpress.org/ibnulk/), [sabbir1991](https://profiles.wordpress.org/sabbir1991/), [kamalahmed](https://profiles.wordpress.org/kamalahmed/), [harshbarach](https://profiles.wordpress.org/harshbarach/), [mukulsingh27](https://profiles.wordpress.org/mukulsingh27/), [vishalkakadiya](https://profiles.wordpress.org/vishalkakadiya/), [elifvish](https://profiles.wordpress.org/elifvish/), [krupajnanda](https://profiles.wordpress.org/krupajnanda/), [utsavladani](https://profiles.wordpress.org/utsavladani/),[krishana79](https://profiles.wordpress.org/krishana79/), [rohitmathur7](https://profiles.wordpress.org/rohitmathur7/)
1515

1616
* **License:** [GPL v2 or later]( http://www.gnu.org/licenses/gpl-2.0.html)
1717

@@ -151,6 +151,16 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
151151

152152
## Changelog ##
153153

154+
### 4.6.23
155+
156+
* Fixed
157+
* Fixes related to WP v6.8 compatibility issues.
158+
* Enhanced security by updating node version and packages.
159+
160+
* Enhancement
161+
162+
* Changed the admin notices for users on rtmedia tabs.
163+
154164
### 4.6.22
155165

156166
* Fixed

0 commit comments

Comments
 (0)