Making WordPress.org

Changeset 13712

Timestamp:
05/16/2024 05:14:35 AM (2 months ago)
Author:
dd32
Message:

Plugin Directory: Blocks: Don't import PHP register_block_type() calls that concatenate the block name.

See #6170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r13711 r13712  
    10241024            // Again this assumes literal strings, and only parses the name and title.
    10251025            $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]+)['\"]#ms", $contents, $matches, PREG_SET_ORDER ) ) {
    10271027                foreach ( $matches as $match ) {
    10281028                    $blocks[] = (object) [
Note: See TracChangeset for help on using the changeset viewer.