Make WordPress Core

Opened 7 months ago

Closed 7 months ago

#62152 closed defect (bug) (reported-upstream)

Bundled themes display author for CPTs that do not support authors

Reported by: groenroos's profile groenroos Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.6.2
Component: Editor Keywords:
Focuses: Cc:

Description

Bundled themes Twenty Twenty-Four, Twenty Twenty-Three, and Twenty Twenty-Two will display author information for posts of a custom post type that does not declare author support.

Steps to reproduce

  • Create a custom post type and specify that it does not support author
  • Create a new post of that post type
  • View that post on the front end
  • The author is shown on the page, even though the post type does not support author

Related to #48803

Attachments (2)

code.png (111.5 KB) - added by iflairwebtechnologies 7 months ago.
admin.png (26.5 KB) - added by iflairwebtechnologies 7 months ago.

Download all attachments as: .zip

Change History (6)

#1 @iflairwebtechnologies
7 months ago

@groenroos
when post type create with need add author in supports as per attached

#2 @poena
7 months ago

  • Component changed from Bundled Theme to Editor

Hi @groenroos and welcome to WordPress Trac!

These themes are built using blocks, and because they are default themes, it is not suitable for them to change how the block works.
Bugs with the author blocks need to be solved in the editor first, since they affect all block themes and not only the bundled themes.

Because it is a block editor issue, the ticket needs to be opened and managed in the Gutenberg GitHub repository: https://github.com/WordPress/gutenberg

Please reply back if you need help with this, or reply with a GitHub issue number so that the two tickets can be linked.

After that, this ticket can be closed.

#3 @groenroos
7 months ago

@iflairwebtechnologies Thanks - but the CPT not declaring author is correct; the fact that the theme nevertheless displays the author name even though the CPT does not declare author support is the issue at hand!

@poena Thank you for the clarification! I've submitted a ticket here: https://github.com/WordPress/gutenberg/issues/65816

#4 @Mamaduka
7 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.