Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure $atts passed to $callback of add_shortcode() is always an array #5480

Closed
wants to merge 5 commits into from

Conversation

smileBeda
Copy link

Ensures $atts passed to $callback of add_shortcode() is always an array

Trac ticket: https://core.trac.wordpress.org/ticket/59613

Simplifies the return value of `shortcode_parse_atts` to be always an array (either empty or with attributes)

Signed-off-by: Beda Schmid <beda@tukutoi.com>
- Added reference to wp_delete_file() instead of unlink()

Signed-off-by: Beda Schmid <beda@tukutoi.com>
- Adds HTML5 support for source links by removing the trailing slash if theme supports HTML5 style

Signed-off-by: Beda Schmid <beda@tukutoi.com>
- Adds HTML5 support for robots meta if theme supports HTML5 meta

Signed-off-by: Beda Schmid <beda@tukutoi.com>
@swissspidy
Copy link
Member

@swissspidy swissspidy closed this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants