⚑ NEW: Ticket/ - High Quality

Opened 3 days ago

Closed 13 hours ago

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

Escaping for footnotes block output to follow WordPress Coding Standards

Reported by: utsav72640's profile utsav72640 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.9
Component: General Keywords: has-patch needs-unit-tests needs-testing close
Focuses: coding-standards Cc:

Description

The changes focus on security and WordPress coding standards by escaping dynamic values (id and content) in the footnotes block and adding a clarifying comment for password-protected posts. Functionality and ARIA labels remain the same.

Attachments (1)

footnotes.diff​ (885 bytes) - added by utsav72640 3 days ago.
\wp-includes\blocks\footnotes.php

Download all attachments as: .zip

Change History (4)

@utsav72640
3 days ago

\wp-includes\blocks\footnotes.php

#1 @jonsurrell
3 days ago

  • Focuses accessibility php-compatibility removed
  • Keywords close added

This is part of the block library and the change would need to be made ​in the Gutenberg repository.

For WordPress Core contributions, you can open a ​Pull Request on GitHub instead of uploading a patch.


This is purely informative, it's not a review of the issue or the proposed changes.

#2 @manhphucofficial
31 hours ago

Thanks for raising this and sharing the patch! πŸ™‚

Since this is part of the block library, I’ve opened an upstream PR in Gutenberg to help move it forward there:
​https://github.com/WordPress/gutenberg/pull/74243

Happy to sync back once it’s merged upstream.

#3 @Mamaduka
13 hours ago

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