Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@33411 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2971d7d3ed
commit
f4f1b48213
@ -633,7 +633,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
|
|||||||
foreach ( $replace_pairs as $needle => $replace );
|
foreach ( $replace_pairs as $needle => $replace );
|
||||||
|
|
||||||
// Loop through delimeters (elements) only.
|
// Loop through delimeters (elements) only.
|
||||||
for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
|
for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
|
||||||
if ( false !== strpos( $textarr[$i], $needle ) ) {
|
if ( false !== strpos( $textarr[$i], $needle ) ) {
|
||||||
$textarr[$i] = str_replace( $needle, $replace, $textarr[$i] );
|
$textarr[$i] = str_replace( $needle, $replace, $textarr[$i] );
|
||||||
$changed = true;
|
$changed = true;
|
||||||
@ -644,7 +644,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
|
|||||||
$needles = array_keys( $replace_pairs );
|
$needles = array_keys( $replace_pairs );
|
||||||
|
|
||||||
// Loop through delimeters (elements) only.
|
// Loop through delimeters (elements) only.
|
||||||
for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
|
for ( $i = 1, $c = count( $textarr ); $i < $c; $i += 2 ) {
|
||||||
foreach ( $needles as $needle ) {
|
foreach ( $needles as $needle ) {
|
||||||
if ( false !== strpos( $textarr[$i], $needle ) ) {
|
if ( false !== strpos( $textarr[$i], $needle ) ) {
|
||||||
$textarr[$i] = strtr( $textarr[$i], $replace_pairs );
|
$textarr[$i] = strtr( $textarr[$i], $replace_pairs );
|
||||||
|
Loading…
Reference in New Issue
Block a user