From 629b3d4d979e9424f7d70fd07dc0093fc01ca975 Mon Sep 17 00:00:00 2001
From: "Donald A. Lobo" <lobo@civicrm.org>
Date: Tue, 14 May 2013 21:12:17 -0700
Subject: [PATCH] CRM-12624

----------------------------------------
* CRM-12624: WordPress does not allow anon user to access subscribe/unsubscribe CiviMail pages
  http://issues.civicrm.org/jira/browse/CRM-12624
---
 CRM/Core/Permission/WordPress.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/CRM/Core/Permission/WordPress.php b/CRM/Core/Permission/WordPress.php
index 3ebfe2b2bf..d77e2237c8 100644
--- a/CRM/Core/Permission/WordPress.php
+++ b/CRM/Core/Permission/WordPress.php
@@ -56,8 +56,7 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base {
     }
 
     // Make string lowercase and convert spaces into underscore
-    $str = strtolower($str);
-    $str = str_replace(" ","_",$str);
+    $str = CRM_Utils_String::munge(strtolower($str));
 
     if ( is_user_logged_in() ) {
       // Check whether the logged in user has the capabilitity
-- 
GitLab