Ticket #12690: 12690.3.diff
File 12690.3.diff, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-includes/formatting.php
219 219 . '[^\[\]<>]' // Shortcodes do not contain other shortcodes. 220 220 . '|' 221 221 . '<[^>]+>' // HTML elements permitted. Prevents matching ] before >. 222 . ')+ '222 . ')++' 223 223 . '\]' // Find end of shortcode. 224 224 . '\]?' // Shortcodes may end with ]] 225 225 . ')/s'; … … 241 241 242 242 continue; 243 243 244 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)+ \]$/', $curl ) ) {244 } elseif ( '[' === $first && 1 === preg_match( '/^\[(?:[^\[\]<>]|<[^>]+>)++\]$/', $curl ) ) { 245 245 // This is a shortcode delimeter. 246 246 247 247 _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes ); 248 248 249 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)+ \]\]?$/', $curl ) ) {249 } elseif ( '[' === $first && 1 === preg_match( '/^\[\[?(?:[^\[\]<>]|<[^>]+>)++\]\]?$/', $curl ) ) { 250 250 // This is an escaped shortcode delimeter. 251 251 252 252 // Do not texturize.