Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: disqus/disqus-wordpress
base: fcdead00bc
...
head fork: disqus/disqus-wordpress
compare: 9909511a5a
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 1 commit comment
  • 1 contributor
Showing with 10 additions and 1 deletion.
  1. +10 −1 disqus/disqus.php
View
11 disqus/disqus.php
@@ -1213,7 +1213,14 @@ function dsq_output_footer_comment_js() {
}
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
- s.src = 'http://<?php echo DISQUS_DOMAIN; ?>/forums/' + disqus_shortname + '/count.js';
+ <?php
+ if (is_ssl()) {
+ $connection_type = "https";
+ } else {
+ $connection_type = "http";
+ }
+ ?>
+ s.src = '<?php echo $connection_type; ?>' + '://' + '<?php echo DISQUS_DOMAIN; ?>/forums/' + disqus_shortname + '/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
//]]>
@@ -1475,6 +1482,8 @@ function dsq_install_database($version=0) {
}
}
function dsq_uninstall_database($version=0) {
+ global $wpdb;
+
if (version_compare($version, '2.49', '>=')) {
$wpdb->query("DROP INDEX disqus_dupecheck ON `".$wpdb->prefix."commentmeta`;");
}

Showing you all comments on commits in this comparison.

@archon810

Good to see this made it here.

Something went wrong with that request. Please try again.