I am unable to figure out what my problem is. I am hoping someone can help me.
I have several password protected pages that I have not visited since upgrading to Montezuma some time ago.
They have worked in the past but no longer respond to the correct password. I probably should have tested them at the time but didn't.
I have deactivated the theme with all plug-ins activated and the password protection works just fine. I have disabled all the plug-ins with Montezuma activated and the page is non-responsive again.
The only modification I have made is to add the following to the functions.php:
add_filter( 'the_password_form', 'custom_password_form' );
function custom_password_form() {
global $post;
$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
$o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post">
' . __( "Your files are only a password away.<br />Please use the password that was sent to you via email to access the goodies.<br /> <br />") . '
<label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" class="button" value="' . esc_attr__( "Submit" ) . '" />
</form><br /><p style="font-size:14px;margin:0px;">If you have misplaced your password, or need a new one, please <a href="http://domain/contact">contact us to get set up.</a></p>
';
return $o;
}
Restoring the original functions.php makes no difference.
Here is an example of an offending page: bit.ly/15jBEHt I have reset the password to "montezuma"
Any ideas?