[Plugin: Theme My Login] Password protected pages broken
-
With WP 3.4, the system for dealing with password protected pages is now run through the main login function, instead of wp-pass.php. The function in the default wp-login.php (lines 388-401) is
case 'postpass' :
if ( empty( $wp_hasher ) ) {
require_once( ABSPATH . 'wp-includes/class-phpass.php' );
// By default, use the portable hash from phpass
$wp_hasher = new PasswordHash(8, true);
}// 10 days
setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + 864000, COOKIEPATH );wp_safe_redirect( wp_get_referer() );
exit();break;
This functionality is not in the 6.2 version of Theme My Login, so the submission of the post_password field goes to a script that doesn’t know how to handle it.
In case anyone else was having trouble with their protected pages, just disable the plugin for now, and make sure that your form’s action points to WP-URL/wp-login.php.
The topic ‘[Plugin: Theme My Login] Password protected pages broken’ is closed to new replies.