Changeset 13712
- Timestamp:
- 05/16/2024 05:14:35 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r13711 r13712 1024 1024 // Again this assumes literal strings, and only parses the name and title. 1025 1025 $contents = file_get_contents( $filename ); 1026 if ( $contents && preg_match_all( "#register_block_type\s*[(]\s*['\"]([-\w]+/[-\w]+)['\"] #ms", $contents, $matches, PREG_SET_ORDER ) ) {1026 if ( $contents && preg_match_all( "#register_block_type\s*[(]\s*['\"]([-\w]+/[-\w]+)['\"](?!\s*[.])#ms", $contents, $matches, PREG_SET_ORDER ) ) { 1027 1027 foreach ( $matches as $match ) { 1028 1028 $blocks[] = (object) [
Note: See TracChangeset
for help on using the changeset viewer.