Skip to content

Commit

Permalink
Release 1.3.2
Browse files Browse the repository at this point in the history
* Fix undefined index issues.
* Add translate post_id for edd-fes pages.
* Add multilingual downloads handling options.
  • Loading branch information
vukvukovich committed Nov 16, 2017
1 parent 9f7fa4d commit 2aed26e
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
23 changes: 20 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# 1.2.2
# Change Log
All notable changes to this project will be documented in this file.

## Bugfix
## [ 1.3.2 ]
### Fixed
* Undefined index issues.
* Translate post_id for edd-fes pages.

* Fixed deprecated calls.
### Added
* Multilingual downloads handling options.

## [ 1.2.2 ] - 2016-09-09
### Fixed
* Fixed deprecated calls.
* Fixed WPML header for some admin pages is now disabled

### Added
* Added language column to payments history table

### Removed
* Removed synchronization and recalculation option
* Removed Crowdfunding plug-in support
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Easy Digital Downloads Multilingual

![Latest Stable Version](https://img.shields.io/badge/stable-1.2.2-green.svg?style=flat-squar)
![Latest Stable Version](https://img.shields.io/badge/stable-1.3.2-green.svg?style=flat-squar)
![License](https://img.shields.io/badge/license-GPLv2-red.svg?style=flat-squar)


Expand Down
19 changes: 15 additions & 4 deletions class-edd-multilingual.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function init_hooks() {
add_filter( 'edd_payments_table_columns', array( $this, 'payments_table_language_column' ) );
add_filter( 'edd_payments_table_column', array( $this, 'render_payments_table_column' ), 10, 3 );

// Add back the flags to downloads manager.
// Add back the flags to downloads manager. NOTE: Not working when EDD FES is used.
add_filter( 'edd_download_columns', array(
new WPML_Custom_Columns( $wpdb, $sitepress ),
'add_posts_management_column'
Expand Down Expand Up @@ -125,9 +125,20 @@ public function translate_page_ids() {
$edd_options = edd_get_settings();

// Translate post_id for pages in options.
$edd_options['purchase_page'] = apply_filters( 'wpml_object_id', $edd_options['purchase_page'], 'page', true );
$edd_options['success_page'] = apply_filters( 'wpml_object_id', $edd_options['success_page'], 'page', true );
$edd_options['failure_page'] = apply_filters( 'wpml_object_id', $edd_options['failure_page'], 'page', true );
isset( $edd_options['purchase_page'] ) ? $edd_options['purchase_page'] = apply_filters( 'wpml_object_id', $edd_options['purchase_page'], 'page', true ) : '';
isset( $edd_options['success_page'] ) ? $edd_options['success_page'] = apply_filters( 'wpml_object_id', $edd_options['success_page'], 'page', true ) : '';
isset( $edd_options['failure_page'] ) ? $edd_options['failure_page'] = apply_filters( 'wpml_object_id', $edd_options['failure_page'], 'page', true ) : '';
isset( $edd_options['purchase_history_page'] ) ? $edd_options['purchase_history_page'] = apply_filters( 'wpml_object_id', $edd_options['purchase_history_page'], 'page', true ) : '';
isset( $edd_options['login_redirect_page'] ) ? $edd_options['login_redirect_page'] = apply_filters( 'wpml_object_id', $edd_options['login_redirect_page'], 'page', true ) : '';

// Translate post_id for edd-fes add-on.
isset( $edd_options['fes-vendor-dashboard-page'] ) ? $edd_options['fes-vendor-dashboard-page'] = apply_filters( 'wpml_object_id', $edd_options['fes-vendor-dashboard-page'], 'page', true ) : '';
isset( $edd_options['fes-vendor-page'] ) ? $edd_options['fes-vendor-page'] = apply_filters( 'wpml_object_id', $edd_options['fes-vendor-page'], 'page', true ) : '';
isset( $edd_options['fes-submission-form'] ) ? $edd_options['fes-submission-form'] = apply_filters( 'wpml_object_id', $edd_options['fes-submission-form'], 'page', true ) : '';
isset( $edd_options['fes-profile-form'] ) ? $edd_options['fes-profile-form'] = apply_filters( 'wpml_object_id', $edd_options['fes-profile-form'], 'page', true ) : '';
isset( $edd_options['fes-login-form'] ) ? $edd_options['fes-login-form'] = apply_filters( 'wpml_object_id', $edd_options['fes-login-form'], 'page', true ) : '';
isset( $edd_options['fes-registration-form'] ) ? $edd_options['fes-registration-form'] = apply_filters( 'wpml_object_id', $edd_options['fes-registration-form'], 'page', true ) : '';
isset( $edd_options['fes-vendor-contact-form'] ) ? $edd_options['fes-vendor-contact-form'] = apply_filters( 'wpml_object_id', $edd_options['fes-vendor-contact-form'], 'page', true ) : '';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion edd-multilingual.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
return;
}

define( 'EDD_MULTILINGUAL_VERSION', '1.2.2' );
define( 'EDD_MULTILINGUAL_VERSION', '1.3.2' );
define( 'EDD_MULTILINGUAL_PATH', dirname( __FILE__ ) );

require EDD_MULTILINGUAL_PATH . '/class-edd-multilingual.php';
Expand Down

0 comments on commit 2aed26e

Please sign in to comment.