Version Description
Release Date - 2021-06-15
- IWP-192 - Support Multilingual sites
- IWP-231 - Fix a potential vulnerability
Download this release
Release Info
Developer | IntellyWP |
Plugin | Inline Related Posts |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.4 to 3.0.5
- assets/js/button-mce.js +1 -1
- includes/actions.php +2 -0
- includes/classes/utils/Utils.php +4 -1
- includes/core.php +4 -0
- index.php +8 -2
- languages/Lang.txt +1 -1
- languages/intelly-related-posts-de_DE.mo +0 -0
- languages/intelly-related-posts-de_DE.po +20 -0
- languages/intelly-related-posts-en_GB.mo +0 -0
- languages/intelly-related-posts-en_GB.po +20 -0
- languages/intelly-related-posts-en_US.mo +0 -0
- languages/intelly-related-posts-en_US.po +19 -0
- languages/intelly-related-posts-sv_SE.mo +0 -0
- languages/intelly-related-posts-sv_SE.po +20 -0
- languages/intelly-related-posts.mo +0 -0
- languages/intelly-related-posts.pot +20 -0
- readme.txt +7 -1
assets/js/button-mce.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
(function() {
|
2 |
tinymce.PluginManager.add('irp_mce_button', function(editor, url) {
|
3 |
editor.addButton('irp_mce_button', {
|
4 |
-
title: 'Inline Related Posts
|
5 |
, type: 'menubutton'
|
6 |
, icon: 'icon irp-own-icon'
|
7 |
, image : url + '/../images/repeat.png'
|
1 |
(function() {
|
2 |
tinymce.PluginManager.add('irp_mce_button', function(editor, url) {
|
3 |
editor.addButton('irp_mce_button', {
|
4 |
+
title: 'Inline Related Posts'
|
5 |
, type: 'menubutton'
|
6 |
, icon: 'icon irp-own-icon'
|
7 |
, image : url + '/../images/repeat.png'
|
includes/actions.php
CHANGED
@@ -6,6 +6,8 @@ add_action('init', 'irp_do_action');
|
|
6 |
add_action('wp_ajax_do_action', 'irp_do_action');
|
7 |
function irp_do_action() {
|
8 |
global $irp;
|
|
|
|
|
9 |
|
10 |
$action = $irp->Utils->qs('irp_action');
|
11 |
$irp->Log->info('[actions::irp_do_action] Action: %s', $action);
|
6 |
add_action('wp_ajax_do_action', 'irp_do_action');
|
7 |
function irp_do_action() {
|
8 |
global $irp;
|
9 |
+
|
10 |
+
load_plugin_textdomain(IRP_PLUGIN_SLUG, false, dirname( plugin_basename(__FILE__ ), 2) . '/languages');
|
11 |
|
12 |
$action = $irp->Utils->qs('irp_action');
|
13 |
$irp->Log->info('[actions::irp_do_action] Action: %s', $action);
|
includes/classes/utils/Utils.php
CHANGED
@@ -220,7 +220,7 @@ class IRP_Utils {
|
|
220 |
$result = trim($result);
|
221 |
}
|
222 |
|
223 |
-
return htmlspecialchars($result);
|
224 |
}
|
225 |
|
226 |
function query($query, $args = NULL) {
|
@@ -417,6 +417,9 @@ class IRP_Utils {
|
|
417 |
unset($args[$k]);
|
418 |
}
|
419 |
}
|
|
|
|
|
|
|
420 |
$result = wp_parse_args($args, $defaults);
|
421 |
return $result;
|
422 |
}
|
220 |
$result = trim($result);
|
221 |
}
|
222 |
|
223 |
+
return htmlspecialchars(strip_tags($result), ENT_QUOTES);
|
224 |
}
|
225 |
|
226 |
function query($query, $args = NULL) {
|
417 |
unset($args[$k]);
|
418 |
}
|
419 |
}
|
420 |
+
foreach ($args as &$value) {
|
421 |
+
$value = htmlspecialchars(strip_tags($value), ENT_QUOTES);
|
422 |
+
}
|
423 |
$result = wp_parse_args($args, $defaults);
|
424 |
return $result;
|
425 |
}
|
includes/core.php
CHANGED
@@ -140,6 +140,10 @@ function irp_ui_get_box($ids, $options=NULL) {
|
|
140 |
$options['template']=$options['theme'];
|
141 |
}
|
142 |
unset($options['theme']);
|
|
|
|
|
|
|
|
|
143 |
|
144 |
$posts=array();
|
145 |
foreach($ids as $postId) {
|
140 |
$options['template']=$options['theme'];
|
141 |
}
|
142 |
unset($options['theme']);
|
143 |
+
|
144 |
+
if ($options['ctaText'] == 'READ') {
|
145 |
+
$options['ctaText'] = __('READ', IRP_PLUGIN_SLUG);
|
146 |
+
}
|
147 |
|
148 |
$posts=array();
|
149 |
foreach($ids as $postId) {
|
index.php
CHANGED
@@ -6,13 +6,13 @@ Description: Inline Related Posts AUTOMATICALLY inserts related posts INSIDE you
|
|
6 |
Author: IntellyWP
|
7 |
Author URI: http://intellywp.com/
|
8 |
Email: support@intellywp.com
|
9 |
-
Version: 3.0.
|
10 |
*/
|
11 |
define('IRP_PLUGIN_PREFIX', 'IRP_');
|
12 |
define('IRP_PLUGIN_FILE',__FILE__);
|
13 |
define('IRP_PLUGIN_SLUG', 'intelly-related-posts');
|
14 |
define('IRP_PLUGIN_NAME', 'Inline Related Posts');
|
15 |
-
define('IRP_PLUGIN_VERSION', '3.0.
|
16 |
define('IRP_PLUGIN_AUTHOR', 'IntellyWP');
|
17 |
define('IRP_PLUGIN_ROOT', dirname(__FILE__).'/');
|
18 |
define('IRP_PLUGIN_IMAGES', plugins_url( 'assets/images/', __FILE__ ));
|
@@ -50,6 +50,12 @@ define('IRP_TAB_WHATS_NEW_URI', IRP_PAGE_SETTINGS.'&tab='.IRP_TAB_WHATS_NEW);
|
|
50 |
include_once(dirname(__FILE__).'/autoload.php');
|
51 |
irp_include_php(dirname(__FILE__).'/includes/');
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
global $irp;
|
54 |
$irp=new IRP_Singleton();
|
55 |
$irp->init();
|
6 |
Author: IntellyWP
|
7 |
Author URI: http://intellywp.com/
|
8 |
Email: support@intellywp.com
|
9 |
+
Version: 3.0.5
|
10 |
*/
|
11 |
define('IRP_PLUGIN_PREFIX', 'IRP_');
|
12 |
define('IRP_PLUGIN_FILE',__FILE__);
|
13 |
define('IRP_PLUGIN_SLUG', 'intelly-related-posts');
|
14 |
define('IRP_PLUGIN_NAME', 'Inline Related Posts');
|
15 |
+
define('IRP_PLUGIN_VERSION', '3.0.5');
|
16 |
define('IRP_PLUGIN_AUTHOR', 'IntellyWP');
|
17 |
define('IRP_PLUGIN_ROOT', dirname(__FILE__).'/');
|
18 |
define('IRP_PLUGIN_IMAGES', plugins_url( 'assets/images/', __FILE__ ));
|
50 |
include_once(dirname(__FILE__).'/autoload.php');
|
51 |
irp_include_php(dirname(__FILE__).'/includes/');
|
52 |
|
53 |
+
function irp_load_textdomain()
|
54 |
+
{
|
55 |
+
load_plugin_textdomain(IRP_PLUGIN_SLUG, false, dirname( plugin_basename(__FILE__ )) . '/languages');
|
56 |
+
}
|
57 |
+
add_action('init', 'irp_load_textdomain');
|
58 |
+
|
59 |
global $irp;
|
60 |
$irp=new IRP_Singleton();
|
61 |
$irp->init();
|
languages/Lang.txt
CHANGED
@@ -127,7 +127,7 @@ Faq.Response4=Absolutely Not! Inline Related Posts is built with lightweight cod
|
|
127 |
|
128 |
EasySection=Easy Configuration
|
129 |
CoolSection=Cool Configuration (are you ready?)
|
130 |
-
Settings.template-ctaText=Related text or Call-To-Action
|
131 |
Settings.template-textTransform=Text transform
|
132 |
Settings.template-useDefaults=Use template colors schema
|
133 |
Settings.template-ctaTextColor=Related Text Color
|
127 |
|
128 |
EasySection=Easy Configuration
|
129 |
CoolSection=Cool Configuration (are you ready?)
|
130 |
+
Settings.template-ctaText=Related text or Call-To-Action (entering 'READ' will translate 'READ' from the language translation file)
|
131 |
Settings.template-textTransform=Text transform
|
132 |
Settings.template-useDefaults=Use template colors schema
|
133 |
Settings.template-ctaTextColor=Related Text Color
|
languages/intelly-related-posts-de_DE.mo
ADDED
Binary file
|
languages/intelly-related-posts-de_DE.po
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Intelly Related Posts\n"
|
4 |
+
"POT-Creation-Date: 2021-06-11 12:28-0400\n"
|
5 |
+
"PO-Revision-Date: 2021-06-14 09:45-0400\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: de_DE\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.4.2\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr_e;_x\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#: includes/classes/utils/AppOptions.php:119
|
19 |
+
msgid "READ"
|
20 |
+
msgstr "Siehe auch"
|
languages/intelly-related-posts-en_GB.mo
ADDED
Binary file
|
languages/intelly-related-posts-en_GB.po
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Intelly Related Posts\n"
|
4 |
+
"POT-Creation-Date: 2021-06-11 12:27-0400\n"
|
5 |
+
"PO-Revision-Date: 2021-06-11 12:27-0400\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: en_GB\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.4.2\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr_e;_x\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#: includes/classes/utils/AppOptions.php:119
|
19 |
+
msgid "READ"
|
20 |
+
msgstr "See also"
|
languages/intelly-related-posts-en_US.mo
ADDED
Binary file
|
languages/intelly-related-posts-en_US.po
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Intelly Related Posts\n"
|
4 |
+
"POT-Creation-Date: 2021-06-11 16:26-0400\n"
|
5 |
+
"PO-Revision-Date: 2021-06-14 11:49-0400\n"
|
6 |
+
"Language-Team: \n"
|
7 |
+
"MIME-Version: 1.0\n"
|
8 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
+
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"X-Generator: Poedit 2.4.2\n"
|
11 |
+
"X-Poedit-Basepath: ..\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr_e;_x\n"
|
14 |
+
"Last-Translator: \n"
|
15 |
+
"Language: en_US\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
msgid "READ"
|
19 |
+
msgstr "See also"
|
languages/intelly-related-posts-sv_SE.mo
ADDED
Binary file
|
languages/intelly-related-posts-sv_SE.po
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Intelly Related Posts\n"
|
4 |
+
"POT-Creation-Date: 2021-06-11 16:30-0400\n"
|
5 |
+
"PO-Revision-Date: 2021-06-14 09:47-0400\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: sv_SE\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.4.2\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr_e;_x\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#: includes/core.php:145
|
19 |
+
msgid "READ"
|
20 |
+
msgstr "Se även"
|
languages/intelly-related-posts.mo
ADDED
Binary file
|
languages/intelly-related-posts.pot
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: Intelly Related Posts\n"
|
5 |
+
"POT-Creation-Date: 2021-06-11 16:26-0400\n"
|
6 |
+
"PO-Revision-Date: 2021-06-11 08:52-0400\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: en_US\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 2.4.2\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr_e;_x\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
msgid "READ"
|
20 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -88,10 +88,16 @@ Absolutely Not! Inline Related Posts is built with lightweight code so you won
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
= 3.0.4 =
|
92 |
*Release Date - 2021-05-20*
|
93 |
|
94 |
-
* IWP-178
|
95 |
* IWP-188 make "FAQ & Docs" tab open in new browser tab
|
96 |
|
97 |
= 3.0.3 =
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= 3.0.5 =
|
92 |
+
*Release Date - 2021-06-15*
|
93 |
+
|
94 |
+
* IWP-192 - Support Multilingual sites
|
95 |
+
* IWP-231 - Fix a potential vulnerability
|
96 |
+
|
97 |
= 3.0.4 =
|
98 |
*Release Date - 2021-05-20*
|
99 |
|
100 |
+
* IWP-178 Additional refactoring
|
101 |
* IWP-188 make "FAQ & Docs" tab open in new browser tab
|
102 |
|
103 |
= 3.0.3 =
|