diff --git a/CHANGELOG.md b/CHANGELOG.md index 692bf8d..9a3f73f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. \ No newline at end of file +### 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 \ No newline at end of file diff --git a/README.md b/README.md index 34e63e7..a5b9adb 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/class-edd-multilingual.php b/class-edd-multilingual.php index b6d2ee0..51ab1d1 100644 --- a/class-edd-multilingual.php +++ b/class-edd-multilingual.php @@ -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' @@ -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 ) : ''; } /** diff --git a/edd-multilingual.php b/edd-multilingual.php index c5a9212..f28ece7 100644 --- a/edd-multilingual.php +++ b/edd-multilingual.php @@ -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';