diff options
Fixed login and register templates of carmag theme to comply with back-end requirements.
2 files changed, 10 insertions, 9 deletions
| -rw-r--r-- | wp-content/themes/carmag/templates/login.php | 9 | ||||
| -rwxr-xr-x | wp-content/themes/carmag/templates/register.php | 10 |
diff --git a/wp-content/themes/carmag/templates/login.php b/wp-content/themes/carmag/templates/login.php index daca7dd..51b470f 100644 --- a/wp-content/themes/carmag/templates/login.php +++ b/wp-content/themes/carmag/templates/login.php @@ -1,9 +1,9 @@ -<?php +<?php /** * Template Name: Login * * Custom login template for the theme - * + * * @since v1.0.0 * @package CarMag */ @@ -17,9 +17,10 @@ get_header(); ?> <div class="column small-12 medium-8"> <div id="primary" class="content-area"> <main id="main" class="site-main"> - <form method="POST" action="<?php esc_url( plugins_url( 'register-user-class.php', __FILE__ ) ) ?>" class="login-form"> + <form method="POST" action="<?php echo admin_url('admin-post.php') ?>" class="login-form"> + <input type="hidden" name="action" value="process_login"> <h1>Login</h1> - + <input type="hidden" name="action" value="process_form"> <input class="form-input" type="email" name="email" id="email" placeholder="Email" required autofocus> <input class="form-input" type="password" name="password" id="password" placeholder="Password" required> diff --git a/wp-content/themes/carmag/templates/register.php b/wp-content/themes/carmag/templates/register.php index c35d0a1..ecfba8b 100755 --- a/wp-content/themes/carmag/templates/register.php +++ b/wp-content/themes/carmag/templates/register.php @@ -1,9 +1,9 @@ -<?php +<?php /** * Template Name: Register * * Custom register template for the theme - * + * * @since v1.0.0 * @package CarMag */ @@ -16,10 +16,10 @@ get_header(); ?> <div class="column small-12 medium-8"> <div id="primary" class="content-area"> <main id="main" class="site-main"> - <form method="POST" action="<?php esc_url( plugins_url( 'register-user-class.php', __FILE__ ) ) ?>" class="register-form"> + <form method="POST" action="<?php echo admin_url('admin-post.php') ?>" class="register-form"> + <input type="hidden" name="action" value="process_register"> <h1>Create Account</h1> - - <input type="hidden" name="action" value="process_form"> + <input class="form-input" type="email" name="email" id="email" placeholder="Email" required autofocus> <input class="form-input" type="text" name="name" id="name" placeholder="Name" required> <input class="form-input" type="password" name="password" id="password" placeholder="Password" required> |
