Make WordPress Core

Ticket #48640: 48640.diff

File 48640.diff, 3.0 KB (added by ediamin, 5 years ago)
  • src/wp-includes/blocks.php

    diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
    index 6a1928d20c..0d6ad4bdc8 100644
    a b  
    2020 *     ones described below are supported by default. Default empty array.
    2121 *
    2222 *     @type callable $render_callback Callback used to render blocks of this block type.
     23 *     @type array    $attributes      Block attributes mapping, property name to schema.
     24 *     @type string   $editor_script   Block type editor script handle.
     25 *     @type string   $script          Block type front end script handle.
     26 *     @type string   $editor_style    Block type editor style handle.
     27 *     @type string   $style           Block type front end style handle.
    2328 * }
    2429 * @return WP_Block_Type|false The registered block type on success, or false on failure.
    2530 */
  • src/wp-includes/class-wp-block-type-registry.php

    diff --git a/src/wp-includes/class-wp-block-type-registry.php b/src/wp-includes/class-wp-block-type-registry.php
    index 0cc3e94c18..6f6604426b 100644
    a b final class WP_Block_Type_Registry { 
    4343         *
    4444         *     @type callable $render_callback Callback used to render blocks of this block type.
    4545         *     @type array    $attributes      Block attributes mapping, property name to schema.
     46         *     @type string   $editor_script   Block type editor script handle.
     47         *     @type string   $script          Block type front end script handle.
     48         *     @type string   $editor_style    Block type editor style handle.
     49         *     @type string   $style           Block type front end style handle.
    4650         * }
    4751         * @return WP_Block_Type|false The registered block type on success, or false on failure.
    4852         */
  • src/wp-includes/class-wp-block-type.php

    diff --git a/src/wp-includes/class-wp-block-type.php b/src/wp-includes/class-wp-block-type.php
    index 6ffda95b4e..187166ca73 100644
    a b class WP_Block_Type { 
    8181         * @see register_block_type()
    8282         *
    8383         * @param string       $block_type Block type name including namespace.
    84          * @param array|string $args       Optional. Array or string of arguments for registering a block type.
    85          *                                 Default empty array.
     84         * @param array                $args {
     85         *     Optional. Array of block type arguments. Any arguments may be defined, however the
     86         *     ones described below are supported by default. Default empty array.
     87         *
     88         *     @type callable $render_callback Callback used to render blocks of this block type.
     89         *     @type array    $attributes      Block attributes mapping, property name to schema.
     90         *     @type string   $editor_script   Block type editor script handle.
     91         *     @type string   $script          Block type front end script handle.
     92         *     @type string   $editor_style    Block type editor style handle.
     93         *     @type string   $style           Block type front end style handle.
     94         * }
    8695         */
    8796        public function __construct( $block_type, $args = array() ) {
    8897                $this->name = $block_type;