Good Afternoon!<br><br>I'm looking for assistance in incorporating some core changes I've made into a theme's functions.php file as opposed to me having to constantly change a core file. This will also help me when upgrading installations.<br>
<br>A bit more about the changes I've been making:<br><br>Within wp-includes/formatting.php I changed This around line 50:<pre>$dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/(\s|\A|")\'/', '/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/', '/(\s|\A)"(?!\s)/', '/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/', '/(\d+)x(\d+)/');<br>
$dynamic_replacements = array('’$1','$1‘', '$1″', '$1′', '$1’$2', '$1“$2', '� $1', '’$1', '$1×$2');</pre>with this:<br><pre>$dynamic_characters = array();<br>
$dynamic_replacements = array();<br><br><font style="font-family: arial,helvetica,sans-serif;" size="2">And then</font><font style="font-family: arial,helvetica,sans-serif;" size="2"> this around line 47:</font><br><br>
$static_characters = array_merge(array('---', ' -- ', '--', 'xn–', '...', '``', '\'s', '\'\'', ' (tm)'), $cockney);<br> $static_replacements = array_merge(array('—', ' — ', '–', 'xn--', '…', '“', '’s', '� ', ' ™'), $cockneyreplace);<br>
<br><font style="font-family: arial,helvetica,sans-serif;" size="2">With this: </font><br><br> $static_characters = array_merge(array('---', ' -- ', '--', 'xn–', ' (tm)'), $cockney);<br>
$static_replacements = array_merge(array('—', ' — ', '–', 'xn--', ' ™'), $cockneyreplace);<br></pre>The reason for these changes is that FLIR (<a href="http://facelift.mawhorter.net/">http://facelift.mawhorter.net/</a>) titles with special characters have not been rendering properly due to the way in which wordpress passes along the title to be replaced. The above corrects that.<br>
<br>So the question is, can this be built into theme functions or am I out of luck?<br><br>I can be reached at celia.kyle AT <a href="http://gmail.com">gmail.com</a> with estimates.<br><br>Thanks!<br><br>Celia Kyle<br><a href="http://celiakyle.com" target="_blank">http://celiakyle.com</a><br>
<br>Don't just get Designed, Get Cesigned!<br><a href="http://getcesigned.com" target="_blank">http://getcesigned.com</a><br>