SHARE
TWEET

Link formatting fix

CyrilWashbrook May 28th, 2012 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if($page_url == $suggested_url) {
  2.         $page_titleraw = the_title_attribute(array('echo'=>0));
  3.         $chars = array("‘", "’", "“", "”");
  4.         $replacewith = array("'", "'", "\"", "\"");
  5.         $page_title = str_replace($chars, $replacewith, $page_titleraw );
  6. } else {
  7.         $page_titleraw = get_bloginfo('name');
  8.         $chars = array("‘", "’", "&#8220", "&#8220");
  9.         $replacewith = array("'", "'", "\"", "\"");
  10.         $page_title = str_replace($chars, $replacewith, $page_titleraw );
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top