Fix: The boolean attributes of wp_audio_shortcode#7611
Fix: The boolean attributes of wp_audio_shortcode#7611Debarghya-Banerjee wants to merge 7 commits intoWordPress:trunkfrom
wp_audio_shortcode#7611Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
Hi @joedolson , Can you please take a look into this PR. Thanks. |
apermo
left a comment
There was a problem hiding this comment.
Looks good to me, besides the suggested improvement for the variable names in the foreach()
joedolson
left a comment
There was a problem hiding this comment.
Mostly looks good; one minor tweak to escaping.
|
Hi @joedolson , I have addressed the feedback. |
|
Similarly to ticket 60178, I can confirm this PR also handle well the related attributes when using the [audio] shortcode. |
|
This was fixed in https://core.trac.wordpress.org/changeset/59987 |
Trac Ticket : Core-61515
Overview
Changes Made
Boolean Attributes Handling
Preload Attribute
Code Improvements
Benefits
Improves compliance with HTML5 standards for audio elements.
Ensures cleaner and more efficient HTML output.
Enhances user experience by properly managing audio attributes based on their intended use.
Testing:
All existing tests related to audio shortcode rendering have been updated to validate the new behavior of boolean attributes and the preload attribute.
This pull request aims to improve the functionality and reliability of audio embeds in WordPress while adhering to current web standards.