Changeset 707 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
- Timestamp:
- 06/17/2014 12:38:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
r706 r707 73 73 $items = $this->get_tags( $tag, $content ); 74 74 $first = true; 75 $matches = array(); 76 $replacements = array(); 75 77 76 foreach ( $items as $item) {78 foreach ( $items as $item ) { 77 79 $replacement = ''; 78 80 $matches[] = $item[0]; … … 89 91 } 90 92 91 $content = str_replace( $matches, $replacements, $content ); 93 if ( $replacements ) { 94 $content = str_replace( $matches, $replacements, $content ); 95 } 92 96 93 97 return $content;
Note: See TracChangeset
for help on using the changeset viewer.