Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
changes in polylang
changed in cf7
  • Loading branch information
aurovrata committed Feb 1, 2017
1 parent 9279a1c commit cb9de6e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: aurovrata
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z83ZQ2ARSZPC8
Tags: polylang, contact form 7, multisite, contact form 7 extension, contact form 7 module, multilingual contact form 7
Requires at least: 3.0.1
Tested up to: 4.6.1
Stable tag: 1.2.8
Tested up to: 4.7.1
Stable tag: 1.2.9
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -91,8 +91,11 @@ echo do_shortcode('[contact-form-7 id=”'.$form_id.'″]');
4. There is a bug in the integration which fails to pick the fact that language options have been saved. So even after click the 'Save' button you will see the familiar alert window popup, you can safely ignore the message.

== Changelog ==

= 1.2.9 =
* bug fix due to POLYLANG_URL constant missing in new version of polylang
= 1.2.8 =
* bug fix on font-end enable user login pages reported by @Zelester
* bug fix on front-end enable user login pages reported by @Zelester

= 1.2.7 =
* bug fix on new polylang locale being added.
Expand Down
1 change: 1 addition & 0 deletions admin/cf7-post-admin-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public function change_add_new_button() {
'use strict';
$(document).ready(function() {
$('h1 > a.page-title-action').attr('href','<?php echo $url; ?>');
$('h1 ~ a.page-title-action').attr('href','<?php echo $url; ?>');
});
})( jQuery );
</script>
Expand Down
6 changes: 5 additions & 1 deletion admin/class-cf7-polylang-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ public function enqueue_scripts() {
//enqueue de polylang scripts needed for this to work
global $polylang;
$polylang->admin_enqueue_scripts();
wp_enqueue_script( 'pll_post', POLYLANG_URL .'/js/post.min.js', array( 'jquery', 'wp-ajax-response', 'post', 'jquery-ui-autocomplete' ), POLYLANG_VERSION, true );
if( file_exists(ABSPATH .'wp-cotent/plugins/polylang/js/post.min.js') ){
wp_enqueue_script( 'pll_post', content_url('/plugins/polylang/js/post.min.js'), array( 'jquery', 'wp-ajax-response', 'post', 'jquery-ui-autocomplete' ), POLYLANG_VERSION, true );
}else{
wp_enqueue_script( 'pll_post', content_url('/plugins/polylang-pro/js/post.min.js'), array( 'jquery', 'wp-ajax-response', 'post', 'jquery-ui-autocomplete' ), POLYLANG_VERSION, true );
}
}

}
Expand Down
2 changes: 1 addition & 1 deletion cf7-polylang.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Contact Form 7 Polylang extension
* Plugin URI: http://wordpress.syllogic.in
* Description: This plugin extends <a target="_blank" href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a> plugin to manage multiple language forms using the <a target="_blank" href="https://wordpress.org/plugins/polylang/">PolyLang</a> plugin. It Requires both plugins to be active first.
* Version: 1.2.8
* Version: 1.2.9
* Author: Aurovrata V.
* Author URI: http://syllogic.in
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion includes/class-cf7-polylang.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Cf7_Polylang {
public function __construct() {

$this->plugin_name = 'cf7-polylang';
$this->version = '1.2.8';
$this->version = '1.2.9';

$this->load_dependencies();
$this->set_locale();
Expand Down

0 comments on commit cb9de6e

Please sign in to comment.