Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment controls intermittently dissapear on WP 6.2-beta3 #48380

Closed
johnstonphilip opened this issue Feb 23, 2023 · 2 comments
Closed

Alignment controls intermittently dissapear on WP 6.2-beta3 #48380

johnstonphilip opened this issue Feb 23, 2023 · 2 comments
Labels
[Type] Bug An existing feature does not function as intended

Comments

@johnstonphilip
Copy link
Contributor

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

@johnstonphilip johnstonphilip added the [Type] Bug An existing feature does not function as intended label Feb 23, 2023
@johnstonphilip johnstonphilip changed the title Alignment controls intermittently dissapear on WP beta 6.2 Alignment controls intermittently dissapear on WP 6.2-beta3 Feb 23, 2023
@kathrynwp kathrynwp added the Needs Testing Needs further testing to be confirmed. label Feb 23, 2023
@ndiego ndiego moved this to ❓ Triage in WordPress 6.2 Editor Tasks Feb 23, 2023
@andrewserong
Copy link
Contributor

I'm wondering if this issue is similar to #48355 in that it could be to do with the post editor being unable to retrieve a post content block to determine which layout/alignment rules to make available. There is a fix for that issue over in #48386 (make sure the fallback layout is used) which could potentially fix this one, too.

@tellthemachines tellthemachines removed the Needs Testing Needs further testing to be confirmed. label Feb 23, 2023
@tellthemachines
Copy link
Contributor

I tested on trunk with the reproduction steps above and was able to reproduce the issue. I can also confirm that it is now fixed by #48386. I'm going to go ahead and close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
No open projects
Development

No branches or pull requests

4 participants