Changeset 13983
- Timestamp:
- 04/04/2010 03:07:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r13982 r13983 2183 2183 * @return string The processed string 2184 2184 */ 2185 function _deep_replace( $search, $subject){2185 function _deep_replace( $search, $subject ) { 2186 2186 $found = true; 2187 while($found) { 2187 $subject = (string) $subject; 2188 while ( $found ) { 2188 2189 $found = false; 2189 foreach ( (array) $search as $val ) {2190 while (strpos($subject, $val) !== false) {2190 foreach ( (array) $search as $val ) { 2191 while ( strpos( $subject, $val ) !== false ) { 2191 2192 $found = true; 2192 $subject = str_replace( $val, '', $subject);2193 $subject = str_replace( $val, '', $subject ); 2193 2194 } 2194 2195 }
Note: See TracChangeset
for help on using the changeset viewer.