{"id":7014399,"date":"2016-02-01T16:13:09","date_gmt":"2016-02-01T16:13:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/possible-bugs-and-suggested-fixes\/"},"modified":"2016-08-31T01:10:07","modified_gmt":"2016-08-31T01:10:07","slug":"possible-bugs-and-suggested-fixes","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/possible-bugs-and-suggested-fixes\/","title":{"rendered":"Possible bugs and suggested fixes"},"content":{"rendered":"<p>We are using pro version.<br \/>\nI have made two patches in our local working copy of the module.<br \/>\nYou might want to apply it to code in plugin&#8217;s repository.<\/p>\n<p>1. In front-end\/login.php in wppb_login_redirect function you have the following around line 140:<br \/>\n<code>apply_filters( &#039;wppb_after_login_redirect_url&#039;, $redirect_to );<\/code><br \/>\nI changed it to:<br \/>\n<code>$redirect_to = apply_filters( &#039;wppb_after_login_redirect_url&#039;, $redirect_to );<\/code><br \/>\notherwise it has no effect.<\/p>\n<p>2. In modules\/custom-redirects\/custom-redirects.php it seems there is a typo when specifying key for redirect type.<br \/>\nIn wppb_redirect_default_wp_pages() function around lines 253 and 267 there are line:<br \/>\n<code>$redirect_url = wppb_custom_redirect_url( &#039;login&#039; )<\/code><br \/>\nand <code>$redirect_url = wppb_custom_redirect_url( &#039;login&#039; );<\/code><br \/>\nI changed it to:<br \/>\n<code>$redirect_url = wppb_custom_redirect_url( &#039;after_login&#039; );<\/code><br \/>\nand <code>$redirect_url = wppb_custom_redirect_url( &#039;after_logout&#039; );<\/code><\/p>\n<p>https:\/\/wordpress.org\/plugins\/profile-builder\/<\/p>\n","protected":false},"template":"","class_list":["post-7014399","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7014399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7014399\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7014399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}