Make WordPress Core


Ignore:
Timestamp:
03/12/2021 01:33:21 PM (4 years ago)
Author:
gziolo
Message:

Editor: Make block type aware of variations

Currently block variations are only defined on the client. In some cases, creating block variations on the server can be very useful, especially when needed data is not exposed in the REST APIs.

Related to https://github.com/WordPress/gutenberg/pull/29095.

Props: gwwar, timothyblynjacobs.
Fixes: #52688.

File:
1 edited

Legend:

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

    r50419 r50527  
    9999     */
    100100    public $styles = array();
     101
     102    /**
     103     * Block variations.
     104     * @since 5.8.0
     105     * @var array
     106     */
     107    public $variations = array();
    101108
    102109    /**
Note: See TracChangeset for help on using the changeset viewer.