Site Broke wp-content/themes/twentytwelve/functions.php on line 428
-
My site https://loopholemarketers.com/
I was trying to add this code so I could customize the text on a password protected post.
function custom_password_form($form) { $subs = array( '#<p>This post is password protected. To view it please enter your password below:</p>#' => '<p>THIS LEGAL CONTENT REQUIRES A PASSWORD, IF YOU DO NOT HAVE ONE PLEASE REQUEST ONE FROM [email protected]</p>', '#<form(.*?)>#' => '<form$1 class="passwordform">', '#<input(.*?)type="password"(.*?) />#' => '<input$1type="password"$2 class="text" />', '#<input(.*?)type="submit"(.*?) />#' => '<input$1type="submit"$2 class="button" />' ); echo preg_replace(array_keys($subs), array_values($subs), $form); } add_filter('the_password_form', 'custom_password_form');
Now I get this error:
Parse error: syntax error, unexpected ‘<‘ in wp-content/themes/twentytwelve/functions.php on line 428
But in paste bin, line 428 is: );
Any help?
This is also the error I got after getting a new functions.php file and re-uploading it
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Site Broke wp-content/themes/twentytwelve/functions.php on line 428’ is closed to new replies.