Password protected posts
-
Hi
On line 197 of the plugin, you use
stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password)to test if one has access to the post content.This seems not to be working properly on first load of the page, could it be replace by
post_password_required( $post )for it to work ?Thanks by advance
PiwEL
https://codex.ww.wp.xz.cn/Function_Reference/post_password_required
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Password protected posts’ is closed to new replies.