Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created September 9, 2013 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leewillis77/6500568 to your computer and use it in GitHub Desktop.
Save leewillis77/6500568 to your computer and use it in GitHub Desktop.
All-in-one SEO pack title change
Index: aioseop_class.php
===================================================================
--- aioseop_class.php (revision 769315)
+++ aioseop_class.php (working copy)
@@ -1545,7 +1545,7 @@
$this->title_end = $end;
$this->orig_title = $title;
- return preg_replace( '/<title>(.*?)<\/title>/is', '<title>' . preg_replace('/(\$|\\\\)(?=\d)/', '\\\\\1', strip_tags( $title ) ) . '</title>', $content );
+ return preg_replace( '/<title>(.*?)<\/title>/is', '<title>' . preg_replace('/(\$|\\\\)(?=\d)/', '\\\\\1', strip_tags( $title ) ) . '</title>', $content, 1 );
}
function internationalize( $in ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment