Skip to content

Commit 2b2cc65

Browse files
committed
Merge branch 'release/1.1.11'
2 parents edd8ef8 + 152d74e commit 2b2cc65

File tree

11 files changed

+34983
-167
lines changed

11 files changed

+34983
-167
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy and Release Plugin to WP.org
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
jobs:
8+
releaseToWPOrg:
9+
name: Release to WordPress.org
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Setup PHP 7.4
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: '7.4'
18+
coverage: none
19+
tools: composer:v2
20+
- name: Build
21+
run: |
22+
npm install
23+
npm run build
24+
- name: Install SVN ( Subversion )
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install subversion
28+
- name: WordPress Plugin Deploy
29+
id: deploy
30+
uses: 10up/action-wordpress-plugin-deploy@stable
31+
with:
32+
generate-zip: true
33+
env:
34+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
35+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
36+
SLUG: dokan-wpml
37+
- name: Create GitHub release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
files: ${{steps.deploy.outputs.zip-path}}
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
node_modules
22
build
3+
dist
34
npm-debug.log
45
.DS_Store
56
includes/.DS_Store
6-
.DS_Store
77
.idea
88
plugin-deploy.sh
99
secret.json

.svnignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
bin
22
node_modules
3+
src
4+
.github
35
tests
46
nbproject
57
Gruntfile.js
@@ -13,4 +15,4 @@ debug.log
1315
phpunit.xml
1416
.svnignore
1517
README.md
16-
plugin-deploy.sh
18+
plugin-deploy.sh

bin/zip.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const _ = require( 'lodash' );
66

77
const pluginFiles = [
88
'languages/',
9+
'build',
910
'changelog.txt',
1011
'readme.txt',
1112
'dokan-wpml.php',
@@ -22,7 +23,7 @@ const { version } = JSON.parse( fs.readFileSync( 'package.json' ) );
2223
exec(
2324
'rm -rf *',
2425
{
25-
cwd: 'build',
26+
cwd: 'dist',
2627
},
2728
( error ) => {
2829
if ( error ) {
@@ -37,10 +38,10 @@ exec(
3738
)
3839
);
3940
// Making build folder.
40-
fs.mkdirp( 'build' );
41+
fs.mkdirp( 'dist' );
4142
}
4243

43-
const dest = 'build/dokan-wpml'; // Temporary folder name after coping all the files here.
44+
const dest = 'dist/dokan-wpml'; // Temporary folder name after coping all the files here.
4445
fs.mkdirp( dest );
4546

4647
console.log( `🗜 Started making the zip ...` );
@@ -72,7 +73,7 @@ exec(
7273
exec(
7374
`zip ${ zipFile } dokan-wpml -rq`,
7475
{
75-
cwd: 'build'
76+
cwd: 'dist'
7677
},
7778
( error ) => {
7879
if ( error ) {

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v1.1.11 -> Sep 30, 2025
2+
---------------------------
3+
- **update:** Language switching support for vendor dashboard hash routing added.
4+
- **update:** Added support for zone_id and instance_id parameters for dokan shipping URL.
5+
16
v1.1.10 -> Aug 27, 2025
27
---------------------------
38
- **fix:** Settings submenu URL translation issue with language switcher.

dokan-wpml.php

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* Plugin Name: Dokan - WPML Integration
44
* Plugin URI: https://wedevs.com/
55
* Description: WPML and Dokan compatible package
6-
* Version: 1.1.10
6+
* Version: 1.1.11
77
* Author: weDevs
88
* Author URI: https://wedevs.com/
99
* Text Domain: dokan-wpml
1010
* WC requires at least: 8.5.0
11-
* WC tested up to: 9.7.0
11+
* WC tested up to: 10.2.2
1212
* Domain Path: /languages/
1313
* License: GPL2
1414
*/
@@ -204,6 +204,8 @@ public function plugins_loaded() {
204204

205205
add_action( 'dokan_product_delete', [ $this, 'before_product_delete' ] );
206206
add_action( 'dokan_product_bulk_delete', [ $this, 'before_product_delete' ] );
207+
208+
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] );
207209
}
208210

209211
/**
@@ -656,6 +658,8 @@ public function set_language_switcher_copy_param( $params ) {
656658
'ticket_keyword',
657659
'ticket_status',
658660
'dokan-support-listing-search-nonce',
661+
'zone_id',
662+
'instance_id',
659663
];
660664

661665
return array_merge( $params, $dokan_params );
@@ -1816,19 +1820,44 @@ public function get_original_string_using_translated_string_id( string $translat
18161820
);
18171821
}
18181822

1819-
/**
1820-
* Support WPML delete post actions on the frontend dashboard.
1821-
*
1822-
* @since 1.1.7
1823-
*
1824-
* @return void
1825-
*/
1826-
public function before_product_delete() {
1827-
if ( class_exists( 'WPML_Frontend_Post_Actions' ) ) {
1828-
global $wpml_post_translations;
1829-
add_action( 'delete_post', [ $wpml_post_translations, 'delete_post_actions' ] );
1830-
}
1831-
}
1823+
/**
1824+
* Support WPML delete post actions on the frontend dashboard.
1825+
*
1826+
* @since 1.1.7
1827+
*
1828+
* @return void
1829+
*/
1830+
public function before_product_delete() {
1831+
if ( class_exists( 'WPML_Frontend_Post_Actions' ) ) {
1832+
global $wpml_post_translations;
1833+
add_action( 'delete_post', [ $wpml_post_translations, 'delete_post_actions' ] );
1834+
}
1835+
}
1836+
1837+
/**
1838+
* Enqueue scripts for the seller dashboard.
1839+
*
1840+
* This method enqueues the necessary JavaScript files required for the
1841+
* seller dashboard if the current page is the seller dashboard.
1842+
*
1843+
* @return void
1844+
*/
1845+
public function enqueue() {
1846+
if (! dokan_is_seller_dashboard() ) {
1847+
return;
1848+
}
1849+
1850+
$scripts_file = include( plugin_dir_path( __FILE__ ) . 'build/index.asset.php' );
1851+
1852+
wp_enqueue_script(
1853+
'dokan-wpml-switcher',
1854+
plugin_dir_url( __FILE__ ) . 'build/index.js',
1855+
$scripts_file['dependencies'],
1856+
$scripts_file['version'],
1857+
true
1858+
);
1859+
}
1860+
18321861
/**
18331862
* Filter language switcher URLs for Dokan store and dashboard pages
18341863
*

languages/dokan-wpml.pot

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# This file is distributed under the GPL2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Dokan - WPML Integration 1.1.10\n"
5+
"Project-Id-Version: Dokan - WPML Integration 1.1.11\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dokan-wpml\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-08-27T11:46:31+00:00\n"
12+
"POT-Creation-Date: 2025-09-30T04:45:29+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"X-Generator: WP-CLI 2.11.0\n"
14+
"X-Generator: WP-CLI 2.12.0\n"
1515
"X-Domain: dokan-wpml\n"
1616

1717
#. Plugin Name of the plugin
@@ -36,15 +36,18 @@ msgid "weDevs"
3636
msgstr ""
3737

3838
#. translators: %1$s: opening anchor tag, %2$s: closing anchor tag
39-
#: dokan-wpml.php:251
39+
#: dokan-wpml.php:253
40+
#, php-format
4041
msgid "<b>Dokan - WPML Integration</b> requires %1$s Dokan plugin %2$s to be installed & activated!"
4142
msgstr ""
4243

4344
#. translators: %1$s: opening anchor tag, %2$s: closing anchor tag
44-
#: dokan-wpml.php:257
45+
#: dokan-wpml.php:259
46+
#, php-format
4547
msgid "<b>Dokan - WPML Integration</b> requires %1$s WPML Multilingual CMS %2$s to be installed & activated!"
4648
msgstr ""
4749

48-
#: dokan-wpml.php:1696
50+
#: dokan-wpml.php:1700
51+
#, php-format
4952
msgid "Dokan WPML - Error on registering vendor store URL endpoint: %s"
5053
msgstr ""

0 commit comments

Comments
 (0)