Version Description
- Related content (articles) on compose screen for all users with English WordPress interface
- Language detection for WordPressP interface: non-English users don't get the widget, existing ones get opt-out
Download this release
Release Info
Developer | zemanta-panco |
Plugin | WordPress Related Posts |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1
- config.php +13 -0
- readme.txt +5 -1
- settings.php +1 -1
- wp_related_posts.php +2 -2
config.php
CHANGED
@@ -239,6 +239,19 @@ function wp_rp_is_classic() {
|
|
239 |
return false;
|
240 |
}
|
241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
function wp_rp_migrate_2_9() {
|
243 |
global $wpdb;
|
244 |
|
239 |
return false;
|
240 |
}
|
241 |
|
242 |
+
function wp_rp_migrate_3_0() {
|
243 |
+
global $wpdb;
|
244 |
+
|
245 |
+
$wp_rp_meta = get_option('wp_rp_meta');
|
246 |
+
$wp_rp_meta['version'] = '3.1';
|
247 |
+
$wp_rp_meta['new_user'] = false;
|
248 |
+
if (floatval($wp_rp_meta['first_version']) < 2.8 && strpos(get_bloginfo('language'), 'en') === 0) { // Enable widget to all "old" users out there (old = users that started with plugin version 2.7 or below), that have their interface in english.
|
249 |
+
$wp_rp_meta['classic_user'] = true;
|
250 |
+
}
|
251 |
+
|
252 |
+
update_option('wp_rp_meta', $wp_rp_meta);
|
253 |
+
}
|
254 |
+
|
255 |
function wp_rp_migrate_2_9() {
|
256 |
global $wpdb;
|
257 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: related,posts,post,related posts,plugin
|
|
4 |
License: GPLv2
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
WordPress Related Posts generates a list of related posts with thumbnails and gives you click-through statistics.
|
10 |
|
@@ -81,6 +81,10 @@ Fix for security vulnerability. Upgrade immediately.
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= 3.0 =
|
85 |
* Opt-out for Related recommendations (articles)
|
86 |
* Improved caching
|
4 |
License: GPLv2
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 3.1
|
8 |
|
9 |
WordPress Related Posts generates a list of related posts with thumbnails and gives you click-through statistics.
|
10 |
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 3.1 =
|
85 |
+
* Related content (articles) on compose screen for all users with English WordPress interface
|
86 |
+
* Language detection for WordPressP interface: non-English users don't get the widget, existing ones get opt-out
|
87 |
+
|
88 |
= 3.0 =
|
89 |
* Opt-out for Related recommendations (articles)
|
90 |
* Improved caching
|
settings.php
CHANGED
@@ -525,7 +525,7 @@ function wp_rp_settings_page() {
|
|
525 |
</td>
|
526 |
</tr>
|
527 |
<tr valign="top">
|
528 |
-
<td colspan="2"><?php if(strpos(get_bloginfo('language'), 'en') === 0): ?>
|
529 |
<br/>
|
530 |
<label>
|
531 |
<input name="wp_rp_classic_state" type="checkbox" id="wp_rp_classic_state" value="yes" <?php checked($meta['classic_user']); ?>>
|
525 |
</td>
|
526 |
</tr>
|
527 |
<tr valign="top">
|
528 |
+
<td colspan="2"><?php if(strpos(get_bloginfo('language'), 'en') === 0 || $meta['classic_user']): ?>
|
529 |
<br/>
|
530 |
<label>
|
531 |
<input name="wp_rp_classic_state" type="checkbox" id="wp_rp_classic_state" value="yes" <?php checked($meta['classic_user']); ?>>
|
wp_related_posts.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WordPress Related Posts
|
4 |
-
Version: 3.
|
5 |
Plugin URI: http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/
|
6 |
Description: Quickly increase your readers' engagement with your posts by adding Related Posts in the footer of your content. Click on <a href="admin.php?page=wordpress-related-posts">Related Posts tab</a> to configure your settings.
|
7 |
Author: Zemanta Ltd.
|
8 |
Author URI: http://www.zemanta.com
|
9 |
*/
|
10 |
|
11 |
-
define('WP_RP_VERSION', '3.
|
12 |
|
13 |
define('WP_RP_PLUGIN_FILE', plugin_basename(__FILE__));
|
14 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WordPress Related Posts
|
4 |
+
Version: 3.1
|
5 |
Plugin URI: http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/
|
6 |
Description: Quickly increase your readers' engagement with your posts by adding Related Posts in the footer of your content. Click on <a href="admin.php?page=wordpress-related-posts">Related Posts tab</a> to configure your settings.
|
7 |
Author: Zemanta Ltd.
|
8 |
Author URI: http://www.zemanta.com
|
9 |
*/
|
10 |
|
11 |
+
define('WP_RP_VERSION', '3.1');
|
12 |
|
13 |
define('WP_RP_PLUGIN_FILE', plugin_basename(__FILE__));
|
14 |
|