[wp-trac] [WordPress Trac] #59509: Shortcode attributes named 0 are ignored
WordPress Trac
noreply at wordpress.org
Wed Oct 4 10:02:59 UTC 2023
#59509: Shortcode attributes named 0 are ignored
------------------------------------------+------------------------------
Reporter: ourous | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 6.3.1
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => needs-patch needs-unit-tests
Comment:
Hi there, welcome to WordPress Trac! Thanks for the report, I was able to
reproduce the issue.
Looks like this happens because the `shortcode_parse_atts()` function has
some checks like `! empty( $m[1] )`, which should perhaps be replaced with
`'' !== $m[1]`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59509#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list