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

#59249: shortcode_parse_atts() result for no attributes does not match the documentation #5367

Closed
wants to merge 6 commits into from

Conversation

nikkifurls
Copy link

  • Adds conditional to shortcode_parse_atts() to return an empty array if there are no attributes on the shortcode.
  • Reorders @return options on shortcode_parse_atts() doc block to reflect order of if statement for clarity.

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


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@nikkifurls nikkifurls changed the title shortcode_parse_atts() result for no attributes does not match the documentation Oct 4, 2023
@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
2 participants