Commit 2f8e52d1 by Scott

Merge pull request #369 from IgorCode/patch-1

Replaced registration URL for WordPress integration
parents 70c76610 69dcc400
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
{ {
return array( return array(
'login' => wp_login_url(qa_opt('site_url').$redirect_back_to_url), 'login' => wp_login_url(qa_opt('site_url').$redirect_back_to_url),
'register' => site_url('wp-login.php?action=register'), 'register' => function_exists('wp_registration_url') ? wp_registration_url() : site_url('wp-login.php?action=register'),
'logout' => strtr(wp_logout_url(), array('&' => '&')), 'logout' => strtr(wp_logout_url(), array('&' => '&')),
); );
} }
...@@ -163,4 +163,4 @@ ...@@ -163,4 +163,4 @@
/* /*
Omit PHP closing tag to help avoid accidental output Omit PHP closing tag to help avoid accidental output
*/ */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment