Changeset 48177 for trunk/src/wp-includes/blocks/rss.php
- Timestamp:
- 06/26/2020 01:31:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/rss.php
r47636 r48177 93 93 } 94 94 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 ); 96 96 } 97 97 … … 100 100 */ 101 101 function register_block_core_rss() { 102 register_block_type (103 'core/rss',102 register_block_type_from_metadata( 103 __DIR__ . '/rss', 104 104 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 ),146 105 'render_callback' => 'render_block_core_rss', 147 106 )
Note: See TracChangeset
for help on using the changeset viewer.