>
Download This Plugin | |
Download Elegant Themes | |
Name | Fix Log Out Url |
Version | 1.0 |
Author | Neo Wang |
Rating | 0 |
Last updated | 2013-12-19 04:08:00 |
Downloads |
176
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Fix Log Out Url plugin added 12 bytes of resources to the Home page and 15 bytes of resources to the sample Post page.
Fix Log Out Url plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Fix Log Out Url plugin ads no tables to your Wordpress blog database.I had a site that has two parts running two servers. I need to log out WP after log out the first part, here is my javascript:
function sign_out(){ $.ajax({ type:”DELETE”, url: “/sign_out”, success: function(){ location.href = “”; }, failure: function(){ alert(“There is an error”); } }); }
The problem is the url wp_logout_url() generates has & amp; instead of &, and that cause WordPress display a page asking user to confirm logout and it stays on that page even if user confirms.
So this plugin solves the problem by replaceing & amp; with &.
The code was written by mrlarner at this post http://wordpress.org/support/topic/wp_logout_url-not-redirecting. I just put it in this plugin for convenience.