Skip to content

Cannot query field "textAlign" on type "CoreButtonAttributes" #2383

@BenLLong

Description

@BenLLong

Description

Builds fail with the following GraphQL error when using @faustwp/blocks with WordPress 6.8:

Cannot query field "textAlign" on type "CoreButtonAttributes".

WordPress 6.8 migrated textAlign on the core/button block from a registered block attribute to a block support (Gutenberg PR #73732, merged Dec 10 2025). Since WPGraphQL Content Blocks reads fields from the WordPress block registry, textAlign is no longer exposed on CoreButtonAttributes in the GraphQL schema. The CoreButton fragment in @faustwp/blocks still queries it.

This is the same class of issue as #1932 (align removed from CoreQuoteAttributes for WordPress 6.6).

Steps to reproduce

  1. Run WordPress 6.8+ with WPGraphQL Content Blocks
  2. Use @faustwp/blocks CoreButton/CoreButtons blocks
  3. Run next build — build fails with the above error

Additional context

No response

@faustwp/core Version

3.4.1

@faustwp/cli Version

3.4.1

FaustWP Plugin Version

1.8.0

WordPress Version

6.8

Additional environment details

  • @faustwp/blocks: 6.1.8
  • WPGraphQL Content Blocks: 4.8.5

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

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    🆕 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions