Version Description
- Lowered minimum-supported version of PHP to 5.4
- Fixed a syntax issue in PHP version 5.3
Download this release
Release Info
Developer | ryanv12 |
Plugin | Disqus Comment System |
Version | 3.0.10 |
Comparing to | |
See all releases |
Code changes from version 3.0.9 to 3.0.10
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, rya
|
|
3 |
Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.9.4
|
6 |
-
Stable tag: 3.0.
|
7 |
-
Requires PHP: 5.
|
8 |
|
9 |
Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
|
10 |
|
@@ -119,6 +119,11 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
|
|
|
|
122 |
= 3.0.9 =
|
123 |
|
124 |
* Added a check to deactivate plugin if PHP version is earlier than the minimum-supported version 5.6.
|
3 |
Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.9.4
|
6 |
+
Stable tag: 3.0.10
|
7 |
+
Requires PHP: 5.4
|
8 |
|
9 |
Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
|
10 |
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
= 3.0.10 =
|
123 |
+
|
124 |
+
* Lowered minimum-supported version of PHP to 5.4
|
125 |
+
* Fixed a syntax issue in PHP version 5.3
|
126 |
+
|
127 |
= 3.0.9 =
|
128 |
|
129 |
* Added a check to deactivate plugin if PHP version is earlier than the minimum-supported version 5.6.
|
admin/bundles/js/{en.disqus-admin.bundle.3.0.9.min.js → en.disqus-admin.bundle.3.0.10.min.js}
RENAMED
File without changes
|
disqus.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Disqus for WordPress
|
16 |
* Plugin URI: https://disqus.com/
|
17 |
* Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
|
18 |
-
* Version: 3.0.
|
19 |
* Author: Disqus
|
20 |
* Author URI: https://disqus.com/
|
21 |
* License: GPL-2.0+
|
@@ -33,9 +33,9 @@ if ( ! defined( 'WPINC' ) ) {
|
|
33 |
* The code that runs during plugin activation (but not during updates).
|
34 |
*/
|
35 |
function activate_disqus() {
|
36 |
-
if ( version_compare( phpversion(), '5.
|
37 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
38 |
-
wp_die( 'Disqus requires PHP version 5.
|
39 |
}
|
40 |
}
|
41 |
|
@@ -68,7 +68,7 @@ require plugin_dir_path( __FILE__ ) . 'includes/class-disqus.php';
|
|
68 |
*/
|
69 |
function run_disqus() {
|
70 |
|
71 |
-
$plugin = new Disqus( '3.0.
|
72 |
$plugin->run();
|
73 |
|
74 |
}
|
15 |
* Plugin Name: Disqus for WordPress
|
16 |
* Plugin URI: https://disqus.com/
|
17 |
* Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
|
18 |
+
* Version: 3.0.10
|
19 |
* Author: Disqus
|
20 |
* Author URI: https://disqus.com/
|
21 |
* License: GPL-2.0+
|
33 |
* The code that runs during plugin activation (but not during updates).
|
34 |
*/
|
35 |
function activate_disqus() {
|
36 |
+
if ( version_compare( phpversion(), '5.4', '<' ) ) {
|
37 |
deactivate_plugins( plugin_basename( __FILE__ ) );
|
38 |
+
wp_die( 'Disqus requires PHP version 5.4 or higher. Plugin was deactivated.' );
|
39 |
}
|
40 |
}
|
41 |
|
68 |
*/
|
69 |
function run_disqus() {
|
70 |
|
71 |
+
$plugin = new Disqus( '3.0.10' );
|
72 |
$plugin->run();
|
73 |
|
74 |
}
|
rest-api/class-disqus-rest-api.php
CHANGED
@@ -657,7 +657,8 @@ class Disqus_Rest_Api {
|
|
657 |
$first_identifier = count( $identifiers ) > 0 ? $identifiers[0] : null;
|
658 |
|
659 |
if ( null !== $first_identifier ) {
|
660 |
-
$
|
|
|
661 |
}
|
662 |
|
663 |
// Keep the post's thread ID meta up to date.
|
657 |
$first_identifier = count( $identifiers ) > 0 ? $identifiers[0] : null;
|
658 |
|
659 |
if ( null !== $first_identifier ) {
|
660 |
+
$ident_parts = explode( ' ', $first_identifier, 2 );
|
661 |
+
$wp_post_id = reset( $ident_parts );
|
662 |
}
|
663 |
|
664 |
// Keep the post's thread ID meta up to date.
|