WordPress Jetpack Protect Error On Password Protected Site

I recently came across an issue with the Jetpack plugin for WordPress. If you enable the Protect setting on a password protected WordPress site, you will simply get a blank page after entering in the math answer and logging in. Took some time to find the answer to this, but it’s definitely a bug in the code. They haven’t fixed it yet and I’m on version 3.4.1. Just throwing this on here to maybe help others that are searching for the answer as well.

Add the one line to /plugins/jetpack/modules/protect.php

$use_math = $this->get_transient( 'brute_use_math' );
if ( 1 == $use_math && isset( $_POST['log'] ) ) {
include_once dirname( __FILE__ ) . '/protect/math-fallback.php';

Credit: https://github.com/Automattic/jetpack/pull/1857/files

Related Posts

  • WordPress, SSL, And HTTPS Using Let’s Encrypt With Google search rankings being knocked down for regular HTTP sites, and WordPress announcing that sometime this year features would require HTTPS, I recently decided to look into […]
  • Updated Some Plugins I just updated some plugins for the site, mainly to increase speed with super caching. Please let me know if you are experiencing any issues with pages, posts, or images loading. So far […]
  • WordPress W3 Total Cache Plugin I think I finally found a cache plugin that doesn't go haywire and make things worse. WordPress plugin W3 Total Cache has been running for a bit and has seemed to help the recent slowness […]
  • Great Cache Plugin For WordPress I always wanted to speed up the processing of this blog as most of the stuff is static except for the posts. Found a really good cache plugin for WordPress today called WP Super Cache. If […]
  • Blog Modifications Ok well today I discovered that the blog hasn't looked right since I updated it last week. Guess that's my fault for not checking the site in Internet Explorer. Forgot to since I don't use […]
  • 8 Years-A-Blogging So it's been 8 years already. Boy does time fly! I can remember just trying to figure this stuff out and now I'm customizing themes and building my own web server to run the site. Cheers […]