__group__,ticket,summary,owner,_component,_version,priority,severity,milestone,type,_status,workflow,_created,modified,_description,_reporter
Slated for Next Release,58366,Shortcode Support Regained but Content Filters are messing with Shortcode HTML,,Shortcodes,6.2.2,normal,normal,6.6,defect (bug),new,needs-unit-tests,2023-05-20T15:45:26Z,2024-02-22T20:41:52Z,"I am extremely grateful that the Security Team were able to quickly regain support for shortcodes in the Block Theme templates. However, whatever change has been agreed and pushed out means that the filters to automatically inject `
` and `
` tags into the content are now affecting shortcodes and we are seeing text being automatically wrapped in `
` tags and carriage returns replaced with `
` tags.
Rather than revert to the insecure v6.2.1 we are going through shortcodes to remove any carriage returns.
Please advise.
Oliver",domainsupport
Slated for Next Release,60581,Redundant variable type check,,Shortcodes,trunk,normal,minor,6.6,enhancement,new,has-patch,2024-02-20T14:07:32Z,2024-02-20T14:13:38Z,"After the r57597, which is ensuring that the return type of the `shortcode_parse_atts` function is always an array, the `is_array` check in [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/media.php?rev=57597#L5068 get_post_galleries] function is, IMHO, no longer needed.",david.binda
Tickets Awaiting Review,60200,Search functionality does not search shortcodes,,Shortcodes,,normal,normal,Awaiting Review,enhancement,new,,2024-01-06T07:05:05Z,2024-01-06T16:26:38Z,"My site is heavily using shortcodes, which load texts from the child theme. I noticed ALL pages which use such shortcodes are not properly searchable.
Imagine you have a shortcode which is loading a text file which contains the word ""dog"". If you now search for ""dog"", the WordPress file containing this word is not found. I think this is a big problem as search on a website is increasingly important in a world where users do not have time to browse through pages.
Please make the contents of shortcodes appear in the search.",jackstron
Tickets with Patches,50683,Parse content for shortcodes instead of using regex,johnbillion,Shortcodes,,normal,normal,Future Release,enhancement,reviewing,has-patch,2020-07-16T16:02:50Z,2023-11-26T23:15:48Z,"Shortcodes are currently ""parsed"" out of content using a regular expression and a call to `preg_replace_callback()`. This causes some issues like the inability to use a square bracket in a shortcode attribute.
I've written and attached to this ticket a lexer/parser that steps through the content character by character, finding shortcodes and calling `do_shortcode_tag()` for each one as soon as it's completely parsed. It passes every existing shortcode unit test, as well as six additional tests I've added. It fixes tickets #49955 and #43725 and may possibly fix others that deal with shortcode edge cases.
This method has the advantage of being able to deal with content that wouldn't be properly extracted by a regular expression. Take this string for example:
{{{
[shortcode1][shortcode2 att=""[/shortcode1]"" /][/shortcode1]
}}}
The current implementation would parse this as a single shortcode:
* `[shortcode1]` with inner content `[shortcode2 att=""`
The parse I've attached properly recognizes it as two shortcodes:
* `[shortcode1]` with inner content `[shortcode2 att=""[/shortcode1]"" /]`
* `[shortcode2]` with attribute `att=""[/shortcode1]""`
",cfinke
Tickets Awaiting Review,43457,`wp_html_split` valid HTML attributes issues,,Shortcodes,,normal,normal,Awaiting Review,defect (bug),new,has-patch,2018-03-02T08:25:56Z,2023-11-22T15:40:07Z,"There are a handful of valid HTML attributes that shatter `wp_html_split`.
Since it works by looking for the `<` character we can break it in many ways, starting from:
https://mathiasbynens.be/demo/crazy-class
https://mathiasbynens.be/demo/html5-id
And ending in the less exotic and crazy:
{{{
abcd