Ticket #43346: 43346.patch
File 43346.patch, 712 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/shortcodes.php
458 458 * @return string Content with placeholders removed. 459 459 */ 460 460 function unescape_invalid_shortcodes( $content ) { 461 // Clean up entire string, avoids re-parsing HTML. 462 $trans = array( 463 '[' => '[', 464 ']' => ']', 465 ); 466 $content = strtr( $content, $trans ); 461 // Clean up entire string, avoids re-parsing HTML. 462 $trans = array( 463 '[' => '[', 464 ']' => ']', 465 ); 467 466 468 return $content; 467 $content = strtr( $content, $trans ); 468 469 return $content; 469 470 } 470 471 471 472 /**