Make WordPress Core


Ignore:
Timestamp:
06/26/2020 01:31:11 PM (5 years ago)
Author:
ellatrix
Message:

Editor: update JavaScript packages

Also update default block categories

Props youknowriad, gziolo, aduth.
Fixes #50420, #50278.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/rss.php

    r47636 r48177  
    9393    }
    9494
    95     return sprintf( "<ul class='%s'>%s</ul>", esc_attr( $class ), $list_items );
     95    return sprintf( '<ul class="%s">%s</ul>', esc_attr( $class ), $list_items );
    9696}
    9797
     
    100100 */
    101101function register_block_core_rss() {
    102     register_block_type(
    103         'core/rss',
     102    register_block_type_from_metadata(
     103        __DIR__ . '/rss',
    104104        array(
    105             'attributes'      => array(
    106                 'align'          => array(
    107                     'type' => 'string',
    108                     'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
    109                 ),
    110                 'className'      => array(
    111                     'type' => 'string',
    112                 ),
    113                 'columns'        => array(
    114                     'type'    => 'number',
    115                     'default' => 2,
    116                 ),
    117                 'blockLayout'    => array(
    118                     'type'    => 'string',
    119                     'default' => 'list',
    120                 ),
    121                 'feedURL'        => array(
    122                     'type'    => 'string',
    123                     'default' => '',
    124                 ),
    125                 'itemsToShow'    => array(
    126                     'type'    => 'number',
    127                     'default' => 5,
    128                 ),
    129                 'displayExcerpt' => array(
    130                     'type'    => 'boolean',
    131                     'default' => false,
    132                 ),
    133                 'displayAuthor'  => array(
    134                     'type'    => 'boolean',
    135                     'default' => false,
    136                 ),
    137                 'displayDate'    => array(
    138                     'type'    => 'boolean',
    139                     'default' => false,
    140                 ),
    141                 'excerptLength'  => array(
    142                     'type'    => 'number',
    143                     'default' => 55,
    144                 ),
    145             ),
    146105            'render_callback' => 'render_block_core_rss',
    147106        )
Note: See TracChangeset for help on using the changeset viewer.