WordPress/wp-includes
Scott Taylor 37a0c36d38 The joys of wptexturize():
* Revert parts of [28773] and [28727] and [29748].
* Do not crash PHP. Make the shortcode quantifier possessive to avoid backtracks.
* Reduce backtracking in long HTML comments by 100x.
* Do not ignore unclosed HTML comments.
* Do not break unregistered shortcodes, e.g. `[hello attr="value"]`.
* Do not break HTML in shortcode attributes, e.g. `[hello attr="<"]`.
* Do not match for shortcodes when there is extra whitespace, e.g. `[ hello ]`.
* Add unit tests to show #12690 was not fully resolved.
* Tested PHP 5.2.4, 5.2.13, 5.4.32, and 5.5.8.

Adds/modifies unit tests.

Props miqrogroove.
See #29557.

Built from https://develop.svn.wordpress.org/trunk@29781


git-svn-id: http://core.svn.wordpress.org/trunk@29553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-29 04:07:15 +00:00
..
2014-09-11 19:07:17 +00:00
2014-03-27 22:41:14 +00:00
2014-08-09 19:30:17 +00:00
2014-09-04 15:23:16 +00:00
2014-08-09 19:30:17 +00:00
2014-06-10 00:30:15 +00:00
2014-09-29 04:07:15 +00:00
2014-09-12 05:51:17 +00:00
2014-08-26 19:59:16 +00:00
2014-03-26 18:43:14 +00:00
2014-09-23 03:52:15 +00:00
2014-09-29 04:07:15 +00:00
2013-10-30 14:39:10 +00:00
2014-07-09 18:07:16 +00:00
2014-09-05 19:41:16 +00:00