[wp-trac] [WordPress Trac] #29557: PHP Crash on Large Block of HTML

WordPress Trac noreply at wordpress.org
Sat Sep 6 18:45:42 UTC 2014


#29557: PHP Crash on Large Block of HTML
---------------------------+------------------------------
 Reporter:  MrBobDobolina  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Formatting     |     Version:  4.0
 Severity:  major          |  Resolution:
 Keywords:  wptexturize    |     Focuses:
---------------------------+------------------------------

Comment (by miqrogroove):

 In miqro-29557.patch:
 * Expand the wptexturize regexp to include the list of registered
 shortcodes.
 * This will cause escaped shortcodes to become texturized if not
 registered.
 * Registered shortcodes will not be texturized, even when escaped.
 * Remove all tests involving unregistered shortcodes.
 * Benchmark result: No measurable impact on performance.

 For more consistency, we could remove the check on escaped shortcodes
 altogether and just always texturize them.  They are escaped, so they have
 no special meaning, and they can always be wrapped in {{{<code>}}} blocks
 just like any other text.  I only hesitate to do this because it would
 represent an additional change in behavior.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29557#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list