WordPress.org

Make WordPress Core

Changeset 48334


Ignore:
Timestamp:
07/06/2020 10:48:35 AM (15 months ago)
Author:
youknowriad
Message:

Block Editor: Add the initial set of block patterns.

Included patterns:

text-two-columns
two-buttons
two-images
text-two-columns-with-images
text-three-columns-buttons
large-header
large-header-paragraph
three-buttons
quote
testimonials

Props mcsf, nrqsnchz.
See #50550.

Location:
trunk/src
Files:
12 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-patterns-registry.php

    r48156 r48334  
    3939    public function register( $pattern_name, $pattern_properties ) {
    4040        if ( ! isset( $pattern_name ) || ! is_string( $pattern_name ) ) {
    41             _doing_it_wrong( __METHOD__, s__( 'Pattern name must be a string.' ), '5.5.0' );
     41            _doing_it_wrong( __METHOD__, __( 'Pattern name must be a string.' ), '5.5.0' );
    4242            return false;
    4343        }
  • trunk/src/wp-settings.php

    r48262 r48334  
    287287require ABSPATH . WPINC . '/blocks.php';
    288288require ABSPATH . WPINC . '/blocks/index.php';
     289require ABSPATH . WPINC . '/block-patterns.php';
    289290
    290291$GLOBALS['wp_embed'] = new WP_Embed();
Note: See TracChangeset for help on using the changeset viewer.