{"id":1759,"date":"2018-01-09T23:16:05","date_gmt":"2018-01-09T14:16:05","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1759"},"modified":"2018-01-09T19:30:59","modified_gmt":"2018-01-09T10:30:59","slug":"fix-wordpress-disqus-plugin-erro","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2018\/01\/09\/fix-wordpress-disqus-plugin-erro\/","title":{"rendered":"WordPress Disqus Plugin\u306e\u30a8\u30e9\u30fc\u3092\u4fee\u6b63"},"content":{"rendered":"<p><a name=\"preamble\"><\/a><\/p>\n<p>\u3053\u306eblog\u306e\u4e0b\u306e\u65b9\u306b\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30b3\u30e1\u30f3\u30c8\u306e\u30d5\u30a9\u30fc\u30e0\u304c\u51fa\u3066\u304d\u307e\u305b\u3093\uff0e<br \/>\nhost\u306eOS\u3092Debian jessie\u304b\u3089Debian stretch\u306bdist-upgrade\u3057\u3066WordPress\u306eVersion\u304c\u4e0a\u304c\u3063\u305f\u305b\u3044\u3067\u3057\u3087\u3046\uff0e<\/p>\n<p>4.1+dfsg-1+deb8u15 &#8594; 4.7.5+dfsg-2+deb9u1<\/p>\n<table  class=\" table table-hover\" frame=\"void\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td style=\"border-left: 2px solid silver;\">\n<p>Notice: get_currentuserinfo \u306e\u4f7f\u7528\u306f\u30d0\u30fc\u30b8\u30e7\u30f3 4.5.0 \u304b\u3089\u975e\u63a8\u5968\u306b\u306a\u3063\u3066\u3044\u307e\u3059! \u4ee3\u308f\u308a\u306b wp_get_current_user() \u3092\u4f7f\u3063\u3066\u304f\u3060\u3055<br \/>\n\u3044\u3002 in \/usr\/share\/wordpress\/wp-includes\/functions.php on line 3830<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p>spam\u304c\u9177\u304f\u3066Disqus\u306e\u30b3\u30e1\u30f3\u30c8\u30b7\u30b9\u30c6\u30e0\u3092\u3064\u304b\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u305d\u308c\u304c\u30b3\u30b1\u3066\u3044\u308b\u3088\u3046\u306a\u611f\u3058\u3067\u3059\uff0e<br \/>\nPlugin \u306e version \u304c\u53e4\u3044\u306e\u304b\u3068\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u6700\u65b0\u306e 2.87<\/p>\n<ul>\n<li>\n<p>\n<a href=\"https:\/\/ja.wordpress.org\/plugins\/disqus-comment-system\/\">Disqus Comment System \u2014 WordPress \u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\n<\/p>\n<\/li>\n<li>\n<p>\n<a href=\"https:\/\/disqus.com\/admin\/install\/platforms\/wordpress\/\">Install instructions for WordPress &#8211; Disqus Admin<\/a>\n<\/p>\n<\/li>\n<\/ul>\n<p>\u3068\u308a\u3048\u305a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u3068\u304a\u308a\u4fee\u6b63\u3057\u305f\u3089\u52d5\u304d\u307e\u3057\u305f\uff0e<\/p>\n<p><b>diff<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ sudo -u www-data diff -u plugins\/disqus-comment-system\/disqus.php.org plugins\/disqus-comment-system\/disqus.php\r\n--- plugins\/disqus-comment-system\/disqus.php.org        2017-10-04 06:16:02.520645362 +0900\r\n+++ plugins\/disqus-comment-system\/disqus.php    2018-01-08 02:00:35.729022200 +0900\r\n@@ -1382,7 +1382,7 @@\r\n         return array();\r\n     }\r\n     global $current_user, $dsq_api;\r\n-    get_currentuserinfo();\r\n+    wp_get_current_user();\r\n     if ($current_user-&gt;ID) {\r\n         $avatar_tag = get_avatar($current_user-&gt;ID);\r\n         $avatar_data = array();<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p>\u5229\u7528\u8005\u591a\u3044\u3057Disqus\u516c\u5f0f\u306e\u3082\u306e\u306a\u306e\u3067\u5225\u306e\u3082\u3063\u3068\u3044\u3044\u65b9\u6cd5\u304c\u3042\u308b\u6c17\u304c\u3057\u307e\u3059\uff0e<\/p>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B06XRPM55F&#038;linkId=a11015f6dcba77019f0352f9a39f633a\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B074C3KMMY&#038;linkId=42479315e4b534a39ca00c8184156d5c\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306eblog\u306e\u4e0b\u306e\u65b9\u306b\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30b3\u30e1\u30f3\u30c8\u306e\u30d5\u30a9\u30fc\u30e0\u304c\u51fa\u3066\u304d\u307e\u305b\u3093\uff0e host\u306eOS\u3092Debian jessie\u304b\u3089Debian stretch\u306bdist-upgrade\u3057\u3066WordPress\u306eVersion\u304c\u4e0a\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[5],"tags":[299,274],"class_list":["post-1759","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-disqus","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1759"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1759\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}