{"id":26779,"date":"2013-12-17T23:13:47","date_gmt":"2013-12-17T23:13:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fix-logout-url\/"},"modified":"2013-12-19T04:08:17","modified_gmt":"2013-12-19T04:08:17","slug":"fix-logout-url","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fix-logout-url\/","author":13407749,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.7.41","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Fix Log Out Url","header_author":"Neo Wang","header_description":"","assets_banners_color":"","last_updated":"2013-12-19 04:08:17","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/example.com\/","header_plugin_uri":"http:\/\/www.wordpress.com\/plug-ins\/fix-logout-url","header_author_uri":"http:\/\/www.wordpress.com\/plug-ins\/fix-logout-url","rating":0,"author_block_rating":0,"active_installs":10,"downloads":925,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[29946],"plugin_category":[],"plugin_contributors":[95489,95485],"plugin_business_model":[],"class_list":["post-26779","plugin","type-plugin","status-closed","hentry","plugin_tags-fix-logout-url","plugin_contributors-mrlarner","plugin_contributors-neowang","plugin_committers-neowang"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fix-logout-url.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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:<\/p>\n\n<p>function sign_out(){\n    $.ajax({\n        type:\u201dDELETE\u201d,\n        url: \u201c\/sign_out\u201d,\n        success: function(){\n            location.href = \u201c\u201d;\n        },\n        failure: function(){\n            alert(\u201cThere is an error\u201d);\n        }\n    });\n}<\/p>\n\n<p>The problem is the url wp_logout_url() generates has &amp; amp; instead of &amp;, and that cause WordPress display a page asking user to confirm logout and it stays on that page even if user confirms.<\/p>\n\n<p>So this plugin solves the problem by replaceing &amp; amp; with &amp;.<\/p>\n\n<p>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.<\/p>\n\n<h3>Arbitrary section<\/h3>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>fix-logout-url.php<\/code> to the <code>\/wp-content\/plugins\/fix-logout-url<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>A change since the previous version.<\/li>\n<li>Another change.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>List versions from most recent at top to oldest at bottom.<\/li>\n<\/ul>","raw_excerpt":"Replace &amp; amp; with &amp; in the URL generated by wp_logout_url( $foo ) so WordPress doesn&#039;t ask user confirm logout","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26779"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/neowang"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26779"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26779"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26779"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26779"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26779"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}