Make WordPress Core

Opened 2 months ago

Closed 7 weeks ago

Last modified 7 weeks ago

#62143 closed defect (bug) (fixed)

Twenty Twenty-Five: The copyright format may not be correct

Reported by: wildworks's profile wildworks Owned by:
Milestone: 6.7 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

This is derived from Gutenberg PR: https://github.com/WordPress/gutenberg/pull/65717

This theme displays the copyright in the following format in the footer via the block binding API:

© {currentYear}

However, in my understanding, the copyright should indicate the year the rights were issued, not the current year.

My suggested approach is either:

  1. Delete the copyright.
  2. Instead of the block binding API, embed &copy; <?php echo wp_date( 'Y' ); ?>. This will make the year persistent when the user updates the footer template part. In other words, the time when the user updates the footer template part will be considered the "year the rights were issued."

If we keep the current implementation, we'll probably need to decode the HTML entities. See this comment.

Change History (9)

#1 @poena
2 months ago

Since the theme is not allowed to create a custom setting outside the Customizer,
and since themes can not add synced blocks, there is no way for the user to enter a custom value through the user interface.

What they can do if they don't want to use this format is

  • Replace the block.
  • Set their custom value in a child theme.

#2 @poena
2 months ago

Technically, the date of the first published post or page could also be found and used in the binding, but it still might not be what the user wants.

#3 @wildworks
2 months ago

Thanks for the reply.

My concern isn’t whether users can replace the block or override it from a child theme, but whether the default formatting is appropriate.

If it’s not, I think we’ll need to replace it with a different approach.

#4 @poena
2 months ago

I found the following information:

A copyright notice consists of three elements:

  • The copyright symbol © or (p) for phonorecords, the word “Copyright,” or the abbreviation

“Copr.”;

  • The year of first publication of the work
  • The name of the copyright owner
  • Copyright notice is optional

https://www.copyright.gov/circs/
https://www.copyright.gov/circs/circ03.pdf

#5 @juanfra
2 months ago

Thank you @wildworks

The copyright block is intended to showcase the block binding feature. I believe that if we cannot use bindings, I'd go with option 1.

#6 @wildworks
2 months ago

It's unfortunate that we can't showcase the block binding feature, but I too would lean towards removing the copyright block.

Are there any other patterns or template parts that could showcase the block bindings?

#7 @juanfra
2 months ago

Yes, it's either removing or updating the binding to get the year of the first published post. The latter can be problematic because we would be making an assumption with that date.

There was a [conversation in Slack](https://wordpress.slack.com/archives/C015GUFFC00/p1728051600389679) where @greenshady shared a few suggestions.

Version 0, edited 2 months ago by juanfra (next)

#8 @poena
7 weeks ago

  • Resolution set to fixed
  • Status changed from new to closed

The copyright notice block binding including the text in the footer has been removed, so I am closing this as fixed.

#9 @desrosj
7 weeks ago

  • Milestone changed from Awaiting Review to 6.7
Note: See TracTickets for help on using tickets.