Changeset 56382 for trunk/src/wp-includes/block-supports/align.php
- Timestamp:
- 08/10/2023 04:47:00 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/align.php
r52302 r56382 16 16 */ 17 17 function wp_register_alignment_support( $block_type ) { 18 $has_align_support = block_has_support( $block_type, array( 'align' ), false );18 $has_align_support = block_has_support( $block_type, 'align', false ); 19 19 if ( $has_align_support ) { 20 20 if ( ! $block_type->attributes ) { … … 44 44 function wp_apply_alignment_support( $block_type, $block_attributes ) { 45 45 $attributes = array(); 46 $has_align_support = block_has_support( $block_type, array( 'align' ), false );46 $has_align_support = block_has_support( $block_type, 'align', false ); 47 47 if ( $has_align_support ) { 48 48 $has_block_alignment = array_key_exists( 'align', $block_attributes );
Note: See TracChangeset
for help on using the changeset viewer.