Make WordPress Core

Ticket #48529: 48529.4.diff

File 48529.4.diff, 1.8 KB (added by gziolo, 3 years ago)

Correct one

  • src/wp-includes/class-wp-block-type.php

     
    3232
    3333        /**
    3434         * @since 5.5.0
    35          * @var string
     35         * @var string|null
    3636         */
    37         public $category = '';
     37        public $category = null;
    3838
    3939        /**
    4040         * @since 5.5.0
     
    4444
    4545        /**
    4646         * @since 5.5.0
    47          * @var string
     47         * @var string|null
    4848         */
    49         public $icon = '';
     49        public $icon = null;
    5050
    5151        /**
    5252         * @since 5.5.0
    53          * @var string
     53         * @var string|null
    5454         */
    55         public $description = '';
     55        public $description = null;
    5656
    5757        /**
    5858         * @since 5.5.0
     
    104104         * Block type editor script handle.
    105105         *
    106106         * @since 5.0.0
    107          * @var string
     107         * @var string|null
    108108         */
    109         public $editor_script = '';
     109        public $editor_script = null;
    110110
    111111        /**
    112112         * Block type front end script handle.
    113113         *
    114114         * @since 5.0.0
    115          * @var string
     115         * @var string|null
    116116         */
    117         public $script = '';
     117        public $script = null;
    118118
    119119        /**
    120120         * Block type editor style handle.
    121121         *
    122122         * @since 5.0.0
    123          * @var string
     123         * @var string|null
    124124         */
    125         public $editor_style = '';
     125        public $editor_style = null;
    126126
    127127        /**
    128128         * Block type front end style handle.
     
    130130         * @since 5.0.0
    131131         * @var string
    132132         */
    133         public $style = '';
     133        public $style = null;
    134134
    135135        /**
    136136         * Constructor.
  • tests/phpunit/tests/admin/includesPost.php

     
    840840                $this->assertEquals(
    841841                        array(
    842842                                'title'       => '',
    843                                 'description' => '',
    844843                                'category'    => 'common',
    845844                                'icon'        => 'text',
    846845                                'keywords'    => array(),