Ticket #45882: 45882.patch
File 45882.patch, 856 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/class-wp-block-type.php
198 198 * @return array Array of attributes. 199 199 */ 200 200 public function get_attributes() { 201 returnis_array( $this->attributes ) ?201 $attributes = is_array( $this->attributes ) ? 202 202 array_merge( 203 203 $this->attributes, 204 204 array( 205 'className' => array( 206 'type' => 'string', 207 ), 205 208 'layout' => array( 206 209 'type' => 'string', 207 210 ), … … 208 211 ) 209 212 ) : 210 213 array( 214 'className' => array( 215 'type' => 'string', 216 ), 211 217 'layout' => array( 212 218 'type' => 'string', 213 219 ), 214 220 ); 221 return apply_filters( 'block_attributes', $attributes, $this ); 215 222 } 216 223 }