{"id":10606220,"date":"2018-08-20T11:04:41","date_gmt":"2018-08-20T11:04:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/password-protected-posts-9\/"},"modified":"2018-08-20T11:04:41","modified_gmt":"2018-08-20T11:04:41","slug":"password-protected-posts-9","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/password-protected-posts-9\/","title":{"rendered":"Password protected posts"},"content":{"rendered":"<p>Hi <\/p>\n<p>On line 197 of the plugin, you use <code>stripslashes($_COOKIE[&#039;wp-postpass_&#039;.COOKIEHASH]) != $post-&gt;post_password)<\/code> to test if one has access to the post content.<\/p>\n<p>This seems not to be working properly on first load of the page, could it be replace by <code>post_password_required( $post )<\/code> for it to work ?<\/p>\n<p>Thanks by advance<\/p>\n<p>PiwEL<\/p>\n<p>https:\/\/codex.wordpress.org\/Function_Reference\/post_password_required<\/p>\n","protected":false},"template":"","class_list":["post-10606220","topic","type-topic","status-publish","hentry","topic-tag-password"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10606220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10606220\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10606220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}