Advertisement
CyrilWashbrook

Link formatting fix

May 28th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement