Update private password form
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 23 May 2017 17:52:38 +0000 (13:52 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 23 May 2017 17:52:38 +0000 (13:52 -0400)
Add bws_captcha to form.

functions.php
style.css

index 0cbcda8..84c5bef 100644 (file)
@@ -418,7 +418,11 @@ function wpa_add__wp_http_referer( $form_html ) {
          $form_html
      );
  }
-
+ $form_html = str_ireplace(
+     '<input type="submit"',
+     '[bws_captcha]<input type="submit"',
+     $form_html
+ );
  return $form_html;
 }
 add_filter( 'the_password_form', 'wpa_add__wp_http_referer', 10, 1 );
index 2a7afda..75a9c23 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: GreatLakesShipwreckMuseum
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for GreatLakesShipwreckMuseum
-Version: 1.0.21
+Version: 1.0.22
 */