Version Description
- Fixed: The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
Download this release
Release Info
Developer | Ajay |
Plugin | Contextual Related Posts |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- contextual-related-posts.php +16 -13
- readme.txt +7 -3
- update-info.txt +3 -2
contextual-related-posts.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Contextual Related Posts
|
4 |
-
Version: 1.6.
|
5 |
Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
|
6 |
Description: Show user defined number of contextually related posts. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=crp_options">Configure...</a>
|
7 |
Author: Ajay D'Souza
|
@@ -276,24 +276,27 @@ if ( version_compare( $wp_version, '2.8alpha', '>' ) )
|
|
276 |
add_filter( 'plugin_row_meta', 'crp_plugin_actions', 10, 2 ); // only 2.8 and higher
|
277 |
else add_filter( 'plugin_action_links', 'crp_plugin_actions', 10, 2 );
|
278 |
|
279 |
-
|
280 |
-
function
|
281 |
-
static $plugin;
|
282 |
global $wp_version;
|
283 |
-
|
284 |
-
|
285 |
-
if ($
|
286 |
-
|
|
|
287 |
if (!isset($current->response[$file])) return false;
|
288 |
|
289 |
-
$columns =
|
290 |
-
$url =
|
291 |
$update = wp_remote_fopen($url);
|
292 |
-
|
293 |
-
|
294 |
-
|
|
|
|
|
295 |
}
|
296 |
}
|
|
|
297 |
|
298 |
|
299 |
} // End admin.inc
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Contextual Related Posts
|
4 |
+
Version: 1.6.3
|
5 |
Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
|
6 |
Description: Show user defined number of contextually related posts. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>. <a href="options-general.php?page=crp_options">Configure...</a>
|
7 |
Author: Ajay D'Souza
|
276 |
add_filter( 'plugin_row_meta', 'crp_plugin_actions', 10, 2 ); // only 2.8 and higher
|
277 |
else add_filter( 'plugin_action_links', 'crp_plugin_actions', 10, 2 );
|
278 |
|
279 |
+
// Display message about plugin update option
|
280 |
+
function crp_check_version($file, $plugin_data) {
|
|
|
281 |
global $wp_version;
|
282 |
+
static $this_plugin;
|
283 |
+
$wp_version = str_replace(".","",$wp_version);
|
284 |
+
if (!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
285 |
+
if ($file == $this_plugin){
|
286 |
+
$current = $wp_version < 28 ? get_option('update_plugins') : get_transient('update_plugins');
|
287 |
if (!isset($current->response[$file])) return false;
|
288 |
|
289 |
+
$columns = $wp_version < 28 ? 5 : 3;
|
290 |
+
$url = 'http://svn.wp-plugins.org/contextual-related-posts/trunk/update-info.txt';
|
291 |
$update = wp_remote_fopen($url);
|
292 |
+
if ($update != "") {
|
293 |
+
echo '<tr class="plugin-update-tr"><td colspan="'.$columns.'" class="plugin-update"><div class="update-message">';
|
294 |
+
echo $update;
|
295 |
+
echo '</div></td></tr>';
|
296 |
+
}
|
297 |
}
|
298 |
}
|
299 |
+
add_action('after_plugin_row', 'crp_check_version', 10, 2);
|
300 |
|
301 |
|
302 |
} // End admin.inc
|
readme.txt
CHANGED
@@ -32,6 +32,9 @@ Now, you can choose to exclude posts from certain categories as well as exclude
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
|
|
|
|
|
|
35 |
= 1.6.2 =
|
36 |
* Turned the credit option to false by default. This setting won't effect current users.
|
37 |
* Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail
|
@@ -100,9 +103,10 @@ Now, you can choose to exclude posts from certain categories as well as exclude
|
|
100 |
|
101 |
== Upgrade Notice ==
|
102 |
|
103 |
-
= 1.6.
|
104 |
-
Turned the credit option to false by default. This setting won't effect current users.
|
105 |
-
Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail.
|
|
|
106 |
|
107 |
== Installation ==
|
108 |
|
32 |
|
33 |
== Changelog ==
|
34 |
|
35 |
+
= 1.6.3 =
|
36 |
+
* Fixed: The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
|
37 |
+
|
38 |
= 1.6.2 =
|
39 |
* Turned the credit option to false by default. This setting won't effect current users.
|
40 |
* Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail
|
103 |
|
104 |
== Upgrade Notice ==
|
105 |
|
106 |
+
= 1.6.3 =
|
107 |
+
* Turned the credit option to false by default. This setting won't effect current users.
|
108 |
+
* Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail.
|
109 |
+
* The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
|
110 |
|
111 |
== Installation ==
|
112 |
|
update-info.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
-
Turned the credit option to false by default. This setting won't effect current users
|
2 |
-
Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail
|
|
1 |
+
* Turned the credit option to false by default. This setting won't effect current users.<br />
|
2 |
+
* Turned off borders on post thumbnails. You can customise the CSS class "crp_thumb" to style the post thumbnail.<br />
|
3 |
+
* The plugin will now display a list of changes in the WordPress Admin > Plugins area whenever an update is available
|