Version Description
- Bug Fix: WP 4.9.6: The post editor won't show TA buttons and shows a JS error
Download this release
Release Info
Developer | jkohlbach |
Plugin | ThirstyAffiliates Affiliate Link Manager |
Version | 3.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.3.2
- Helpers/Plugin_Constants.php +1 -1
- js/lib/thirstymce/editor-plugin.js +30 -30
- readme.txt +4 -1
- thirstyaffiliates.php +2 -2
Helpers/Plugin_Constants.php
CHANGED
@@ -27,7 +27,7 @@ class Plugin_Constants {
|
|
27 |
// Plugin configuration constants
|
28 |
const TOKEN = 'ta';
|
29 |
const INSTALLED_VERSION = 'ta_installed_version';
|
30 |
-
const VERSION = '3.3.
|
31 |
const TEXT_DOMAIN = 'thirstyaffiliates';
|
32 |
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
|
33 |
const META_DATA_PREFIX = '_ta_';
|
27 |
// Plugin configuration constants
|
28 |
const TOKEN = 'ta';
|
29 |
const INSTALLED_VERSION = 'ta_installed_version';
|
30 |
+
const VERSION = '3.3.2';
|
31 |
const TEXT_DOMAIN = 'thirstyaffiliates';
|
32 |
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
|
33 |
const META_DATA_PREFIX = '_ta_';
|
js/lib/thirstymce/editor-plugin.js
CHANGED
@@ -4,36 +4,6 @@
|
|
4 |
if( typeof parent.ta_editor_var != 'object' )
|
5 |
return;
|
6 |
|
7 |
-
// ThirstyLinkInput input type object.
|
8 |
-
ThirstyLinkInputObj = {
|
9 |
-
renderHtml: function() {
|
10 |
-
return (
|
11 |
-
'<div id="' + this._id + '" class="wp-thirstylink-input">' +
|
12 |
-
'<input type="text" value="" placeholder="' + parent.ta_editor_var.simple_search_placeholder + '" data-aff-content="" data-aff-title="" data-aff-class="" data-aff-rel="" data-aff-target="" data-aff-link-insertion-type="" data-aff-link-id="" />' +
|
13 |
-
'<ul class="affiliate-link-list" style="display: none;"></ul>' +
|
14 |
-
'</div>'
|
15 |
-
);
|
16 |
-
},
|
17 |
-
getURL: function() {
|
18 |
-
return tinymce.trim( this.getEl().firstChild.value );
|
19 |
-
},
|
20 |
-
getData: function( attrib ) {
|
21 |
-
return tinymce.trim( this.getEl().firstChild.getAttribute( 'data-aff-' + attrib ) );
|
22 |
-
},
|
23 |
-
reset: function() {
|
24 |
-
var input = this.getEl().firstChild;
|
25 |
-
|
26 |
-
input.value = '';
|
27 |
-
input.nextSibling.innerHTML = '';
|
28 |
-
}
|
29 |
-
};
|
30 |
-
|
31 |
-
// register ThirstyLinkInput input type to tinymce.
|
32 |
-
if ( tinymce.ui.Factory )
|
33 |
-
tinymce.ui.Factory.add( 'ThirstyLinkInput' , tinymce.ui.Control.extend( ThirstyLinkInputObj ) );
|
34 |
-
else
|
35 |
-
tinymce.ui.ThirstyLinkInput = tinymce.ui.Control.extend( ThirstyLinkInputObj );
|
36 |
-
|
37 |
// add thirstyaffiliates to the tinymce plugin manager.
|
38 |
tinymce.PluginManager.add( 'thirstyaffiliates', function( editor , url ) {
|
39 |
|
@@ -44,6 +14,36 @@
|
|
44 |
thirstylink_apply_key_command = navigator.platform.match(/Mac/i) ? '⌘⌥K' : 'Ctrl+Alt+K',
|
45 |
thirstylink_quick_add_key_command = navigator.platform.match(/Mac/i) ? '⌘⇧K' : 'Ctrl+Shift+K';
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
// get the selected link
|
48 |
function getSelectedLink() {
|
49 |
var href, html,
|
4 |
if( typeof parent.ta_editor_var != 'object' )
|
5 |
return;
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
// add thirstyaffiliates to the tinymce plugin manager.
|
8 |
tinymce.PluginManager.add( 'thirstyaffiliates', function( editor , url ) {
|
9 |
|
14 |
thirstylink_apply_key_command = navigator.platform.match(/Mac/i) ? '⌘⌥K' : 'Ctrl+Alt+K',
|
15 |
thirstylink_quick_add_key_command = navigator.platform.match(/Mac/i) ? '⌘⇧K' : 'Ctrl+Shift+K';
|
16 |
|
17 |
+
// ThirstyLinkInput input type object.
|
18 |
+
ThirstyLinkInputObj = {
|
19 |
+
renderHtml: function() {
|
20 |
+
return (
|
21 |
+
'<div id="' + this._id + '" class="wp-thirstylink-input">' +
|
22 |
+
'<input type="text" value="" placeholder="' + parent.ta_editor_var.simple_search_placeholder + '" data-aff-content="" data-aff-title="" data-aff-class="" data-aff-rel="" data-aff-target="" data-aff-link-insertion-type="" data-aff-link-id="" />' +
|
23 |
+
'<ul class="affiliate-link-list" style="display: none;"></ul>' +
|
24 |
+
'</div>'
|
25 |
+
);
|
26 |
+
},
|
27 |
+
getURL: function() {
|
28 |
+
return tinymce.trim( this.getEl().firstChild.value );
|
29 |
+
},
|
30 |
+
getData: function( attrib ) {
|
31 |
+
return tinymce.trim( this.getEl().firstChild.getAttribute( 'data-aff-' + attrib ) );
|
32 |
+
},
|
33 |
+
reset: function() {
|
34 |
+
var input = this.getEl().firstChild;
|
35 |
+
|
36 |
+
input.value = '';
|
37 |
+
input.nextSibling.innerHTML = '';
|
38 |
+
}
|
39 |
+
};
|
40 |
+
|
41 |
+
// register ThirstyLinkInput input type to tinymce.
|
42 |
+
if ( tinymce.ui.Factory )
|
43 |
+
tinymce.ui.Factory.add( 'ThirstyLinkInput' , tinymce.ui.Control.extend( ThirstyLinkInputObj ) );
|
44 |
+
else
|
45 |
+
tinymce.ui.ThirstyLinkInput = tinymce.ui.Control.extend( ThirstyLinkInputObj );
|
46 |
+
|
47 |
// get the selected link
|
48 |
function getSelectedLink() {
|
49 |
var href, html,
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: affiliate, link, affiliate link management, link cloaker, link redirect, s
|
|
5 |
Requires at least: 3.4
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 4.9.5
|
8 |
-
Stable tag: 3.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -159,6 +159,9 @@ See our [Knowledge Base](https://thirstyaffiliates.com/knowledge-base/?utm_sourc
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
162 |
= 3.3.1 =
|
163 |
* Improvement: Add render function for URL input type on settings
|
164 |
* Improvement: Remove Save Changes button on Import/Export setting page
|
5 |
Requires at least: 3.4
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 4.9.5
|
8 |
+
Stable tag: 3.3.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 3.3.2 =
|
163 |
+
* Bug Fix: WP 4.9.6: The post editor won't show TA buttons and shows a JS error
|
164 |
+
|
165 |
= 3.3.1 =
|
166 |
* Improvement: Add render function for URL input type on settings
|
167 |
* Improvement: Remove Save Changes button on Import/Export setting page
|
thirstyaffiliates.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: ThirstyAffiliates
|
4 |
* Plugin URI: http://thirstyaffiliates.com/
|
5 |
* Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: Rymera Web Co
|
8 |
* Author URI: https://rymera.com.au/
|
9 |
* Requires at least: 4.4.2
|
10 |
-
* Tested up to: 4.9.
|
11 |
*
|
12 |
* Text Domain: thirstyaffiliates
|
13 |
* Domain Path: /languages/
|
3 |
* Plugin Name: ThirstyAffiliates
|
4 |
* Plugin URI: http://thirstyaffiliates.com/
|
5 |
* Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
|
6 |
+
* Version: 3.3.2
|
7 |
* Author: Rymera Web Co
|
8 |
* Author URI: https://rymera.com.au/
|
9 |
* Requires at least: 4.4.2
|
10 |
+
* Tested up to: 4.9.6
|
11 |
*
|
12 |
* Text Domain: thirstyaffiliates
|
13 |
* Domain Path: /languages/
|