Skip to content

Alignment controls intermittently dissapear on WP 6.2-beta3 #48380

@johnstonphilip

Description

@johnstonphilip

Description

When using a custom post type, the alignment controls controls intermittently show or do-not show.

Step-by-step reproduction instructions

  1. Register a custom post type
  2. Set the post type's public to be false in the register_post_type
  3. Go to the block editor for that post type and add a columns block.
  4. Notice the alignment controls are not showing

Sample registration code to use:

register_post_type(
		'test',
		array(
			'public'       => false,
			'publicly_queryable' => false,
			'has_archive'  => false,
			'show_ui'      => true,
			'show_in_menu' => false,
			'show_in_rest' => true,
			'supports'     => array(
				'editor',
				'custom-fields',
			),
			'labels'       => array(
				'name'          => __( 'Test', 'textdomain' ),
				'singular_name' => __( 'Test', 'textdomain' ),
				'add_new_item'  => __( 'Add New Test', 'textdomain' ),
			),
		)
	);

Screenshots, screen recording, code snippet

Note: This might be intermittent

We have had some team members test this and have results both ways

Screen Shot 2023-02-23 at 3 04 25 PM

Screen Shot 2023-02-23 at 3 15 04 PM

Environment info

  • WordPress 6.2-beta3
  • Gutenberg disabled

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions