Version Description
Download this release
Release Info
Developer | Disqus |
Plugin | Disqus Comment System |
Version | 2.70 |
Comparing to | |
See all releases |
Code changes from version 2.69 to 2.70
- disqus.php +10 -6
- manage.php +3 -3
- readme.txt +10 -1
disqus.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Disqus Comment System
|
|
4 |
Plugin URI: http://disqus.com/
|
5 |
Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your DISQUS Comment System.
|
6 |
Author: Disqus <team@disqus.com>
|
7 |
-
Version: 2.
|
8 |
Author URI: http://disqus.com/
|
9 |
*/
|
10 |
|
@@ -31,7 +31,7 @@ define('DISQUS_CAN_EXPORT', is_file(dirname(__FILE__) . '/export.php'));
|
|
31 |
if (!defined('DISQUS_DEBUG')) {
|
32 |
define('DISQUS_DEBUG', false);
|
33 |
}
|
34 |
-
define('DISQUS_VERSION', '2.
|
35 |
define('DISQUS_SYNC_TIMEOUT', 30);
|
36 |
|
37 |
/**
|
@@ -303,12 +303,16 @@ function dsq_sync_comments($comments) {
|
|
303 |
$commentdata['comment_author'] = $comment->anonymous_author->name;
|
304 |
$commentdata['comment_author_email'] = $comment->anonymous_author->email;
|
305 |
$commentdata['comment_author_url'] = $comment->anonymous_author->url;
|
306 |
-
$commentdata['comment_author_IP'] = $comment->
|
307 |
} else {
|
308 |
-
|
|
|
|
|
|
|
|
|
309 |
$commentdata['comment_author_email'] = $comment->author->email;
|
310 |
$commentdata['comment_author_url'] = $comment->author->url;
|
311 |
-
$commentdata['comment_author_IP'] = $comment->
|
312 |
}
|
313 |
$commentdata = wp_filter_comment($commentdata);
|
314 |
if ($comment->parent_post) {
|
@@ -1467,7 +1471,7 @@ function dsq_install_database($version=0) {
|
|
1467 |
}
|
1468 |
function dsq_uninstall_database($version=0) {
|
1469 |
if (version_compare($version, '2.49', '>=')) {
|
1470 |
-
$wpdb->query("DROP INDEX disqus_dupecheck ON `".$wpdb->prefix."commentmeta
|
1471 |
}
|
1472 |
}
|
1473 |
?>
|
4 |
Plugin URI: http://disqus.com/
|
5 |
Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your DISQUS Comment System.
|
6 |
Author: Disqus <team@disqus.com>
|
7 |
+
Version: 2.70
|
8 |
Author URI: http://disqus.com/
|
9 |
*/
|
10 |
|
31 |
if (!defined('DISQUS_DEBUG')) {
|
32 |
define('DISQUS_DEBUG', false);
|
33 |
}
|
34 |
+
define('DISQUS_VERSION', '2.70');
|
35 |
define('DISQUS_SYNC_TIMEOUT', 30);
|
36 |
|
37 |
/**
|
303 |
$commentdata['comment_author'] = $comment->anonymous_author->name;
|
304 |
$commentdata['comment_author_email'] = $comment->anonymous_author->email;
|
305 |
$commentdata['comment_author_url'] = $comment->anonymous_author->url;
|
306 |
+
$commentdata['comment_author_IP'] = $comment->ip_address;
|
307 |
} else {
|
308 |
+
if (isset($comment->author->display_name)) {
|
309 |
+
$commentdata['comment_author'] = $comment->author->display_name;
|
310 |
+
} else {
|
311 |
+
$commentdata['comment_author'] = $comment->author->username;
|
312 |
+
}
|
313 |
$commentdata['comment_author_email'] = $comment->author->email;
|
314 |
$commentdata['comment_author_url'] = $comment->author->url;
|
315 |
+
$commentdata['comment_author_IP'] = $comment->ip_address;
|
316 |
}
|
317 |
$commentdata = wp_filter_comment($commentdata);
|
318 |
if ($comment->parent_post) {
|
1471 |
}
|
1472 |
function dsq_uninstall_database($version=0) {
|
1473 |
if (version_compare($version, '2.49', '>=')) {
|
1474 |
+
$wpdb->query("DROP INDEX disqus_dupecheck ON `".$wpdb->prefix."commentmeta`;");
|
1475 |
}
|
1476 |
}
|
1477 |
?>
|
manage.php
CHANGED
@@ -3,7 +3,7 @@ global $dsq_api;
|
|
3 |
|
4 |
require(ABSPATH . 'wp-includes/version.php');
|
5 |
|
6 |
-
if ( !current_user_can('
|
7 |
die();
|
8 |
}
|
9 |
|
@@ -393,8 +393,8 @@ case 0:
|
|
393 |
<td>
|
394 |
<form action="?page=disqus" method="POST">
|
395 |
<?php wp_nonce_field('dsq-uninstall'); ?>
|
396 |
-
<p
|
397 |
-
|
398 |
</form>
|
399 |
</td>
|
400 |
</tr>
|
3 |
|
4 |
require(ABSPATH . 'wp-includes/version.php');
|
5 |
|
6 |
+
if ( !current_user_can('moderate_comments') ) {
|
7 |
die();
|
8 |
}
|
9 |
|
393 |
<td>
|
394 |
<form action="?page=disqus" method="POST">
|
395 |
<?php wp_nonce_field('dsq-uninstall'); ?>
|
396 |
+
<p><input type="submit" value="Uninstall" name="uninstall" onclick="return confirm('<?php echo dsq_i('Are you sure you want to uninstall Disqus?'); ?>')" class="button" /> This will remove all Disqus specific settings, but it will leave your comments unaffected.</p>
|
397 |
+
NOTE: If you have problems with uninstallation taking too long you may wish to manually drop the <code>disqus_dupecheck</code> index from your <code>commentmeta</code> table.
|
398 |
</form>
|
399 |
</td>
|
400 |
</tr>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: disqus, alexkingorg, crowdfavorite
|
|
3 |
Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.2.1
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.
|
9 |
|
@@ -54,6 +54,15 @@ Go to [http://disqus.com/help/wordpress](http://disqus.com/help/wordpress)
|
|
54 |
|
55 |
== Changes ==
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
2.69
|
58 |
|
59 |
* Bumped version number.
|
3 |
Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.2.1
|
6 |
+
Stable tag: 2.70
|
7 |
|
8 |
The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.
|
9 |
|
54 |
|
55 |
== Changes ==
|
56 |
|
57 |
+
2.70
|
58 |
+
|
59 |
+
* Properly uninstall disqus_dupecheck index when uninstalling plugin.
|
60 |
+
* Fixed issue with syncing where to user's without a display_name would
|
61 |
+
revert back to Anonymous.
|
62 |
+
* Fixed issue where IP addresses weren't being synced properly.
|
63 |
+
* Allow non-Administrators (e.g., editors) to see Disqus Moderate panel
|
64 |
+
inline (fixes GH-3)
|
65 |
+
|
66 |
2.69
|
67 |
|
68 |
* Bumped version number.
|