Mein Passwortschutz einer Seite funktioniert leider nicht.
Siehe http://www.jso-luebeck.org/orchester/aufn…gener-konzerte/
Ich vermute mal, dass die Abfrage des Passwortes in comments.php eingestellt ist, da ich nur in diesem Editor-Abschnitt etwas mit passwords finde.
Ich habe mal den entsprechenden Code kopiert ... könnt ihr mir sagen, was da falsch ist?!
ZitatAlles anzeigen<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?><p>
<?php
return;
}
}/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->