Can't login to Password Protected Page Update 3.4. HELP!!!
-
Hello,
Before Ver. 3.3.2 I was using the code below with no problem. After the upgrade 3.4 I just couldn’t login to the protected page. I use this code to costumize the look of the password form from a protected page in WordPress. If anyone can help me with a solution change this content with another code or other solution.
Thanks in Advance.
<?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 action="' . get_option('siteurl') . '/wp-pass.php" method="post"> <p>' . __('<strong>Importat:</strong> Random Text.', 'Theme') . '</p> <label for="' . $label . '">' . __('Password:', 'Theme') . ' </label><input class="protected-post-in" name="post_password" id="' . $label . '" type="password" size="20" /><input class="protected-post-form" type="submit" name="Submit" value="' . esc_attr__('Enter', 'Theme') . '" /> </form> '; return $o; } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can't login to Password Protected Page Update 3.4. HELP!!!’ is closed to new replies.