[wp-trac] [WordPress Trac] #51377: Front End elements break after too many shortcodes
WordPress Trac
noreply at wordpress.org
Thu Sep 24 07:28:11 UTC 2020
#51377: Front End elements break after too many shortcodes
-------------------------------+------------------------------
Reporter: ghostofharambe | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 5.1.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by ghostofharambe):
Hi there, thanks for the quick reply.
It's a plugin that has multiple pages which each one has a shortcode
inside that calls a specific function in a file that does similar actions
with all the rest shortcode functions.
The issue first occurred when we added many new add_shortcode() and we
thought there was a limit with the shortcodes created in the whole
installation, because at the removal of one shortcode function and
references the Front-End was restored (previously some elements will not
appear).
After some debugging and enabling the DEBUG mode of wordpress a warning
message appear telling that the offset from preg_match() has reached its
limit.
Then i tried adding a shortcode with $tag length value n
(n=1,2,3.....1000) and the issue appeared again when the $tag reached a
certain length.
From my testing and perspective i reached the conclusion that there is a
limit to the overall $tag value of the add_shortcode() function.
I hope this was helpfull, please let me know if i can enlist any more
details.
Thank you and take care
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51377#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list