Changeset 9828 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-readme-import.php
- Timestamp:
- 05/05/2020 03:59:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-readme-import.php
r8413 r9828 89 89 foreach ( $readme->sections as $section_key => $section_text ) { 90 90 if ( 'changelog' !== $section_key ) { // No need to scan non-translatable version headers in changelog. 91 if ( preg_match_all( '~<(h[3-4]|dt)[^>]*>( .+)</\1>~', $section_text, $matches ) ) {91 if ( preg_match_all( '~<(h[3-4]|dt)[^>]*>([^<].+)</\1>~', $section_text, $matches ) ) { 92 92 if ( ! empty( $matches[2] ) ) { 93 93 foreach ( $matches[2] as $text ) {
Note: See TracChangeset
for help on using the changeset viewer.