From bf82f2d9b173ac3301abe1643dc5b479962c7beb Mon Sep 17 00:00:00 2001 From: Peter Hartree Date: Fri, 5 Sep 2014 21:42:48 +0000 Subject: [PATCH 1/2] Add hooks for disqus_url and dsq_identifier. --- disqus/disqus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disqus/disqus.php b/disqus/disqus.php index 39d6faf..9956dfa 100644 --- a/disqus/disqus.php +++ b/disqus/disqus.php @@ -1435,7 +1435,7 @@ function dsq_hmacsha1($data, $key) { } function dsq_identifier_for_post($post) { - return $post->ID . ' ' . $post->guid; + return apply_filters('dsq_identifier', $post->ID . ' ' . $post->guid); } function dsq_title_for_post($post) { @@ -1445,7 +1445,7 @@ function dsq_title_for_post($post) { } function dsq_link_for_post($post) { - return get_permalink($post); + return apply_filters('dsq_url', get_permalink($post)); } function dsq_does_need_update() { From 4a45d52a97ef212f65285b4cb6b5ab72541a069e Mon Sep 17 00:00:00 2001 From: Peter Hartree Date: Fri, 5 Sep 2014 21:45:33 +0000 Subject: [PATCH 2/2] disqus_url should come from hookable function call, not get_permalink(). --- disqus/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disqus/comments.php b/disqus/comments.php index b4a74b9..6ccceb9 100644 --- a/disqus/comments.php +++ b/disqus/comments.php @@ -43,7 +43,7 @@