Changeset 9061
- Timestamp:
- 07/18/2019 10:37:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php
r9057 r9061 223 223 /** 224 224 * Fixes bug in (or at least in using) SyntaxHighlighter code shortcodes that 225 * causes double-encoding of `>` character.225 * causes double-encoding of `>` and '&' characters. 226 226 * 227 227 * @param string $content The text being handled as code. … … 229 229 */ 230 230 function fix_code_entity_encoding( $content ) { 231 return str_replace( '>', '>', $content );231 return str_replace( [ '>', '&' ], [ '>', '&' ], $content ); 232 232 } 233 233 add_filter( 'syntaxhighlighter_htmlresult', __NAMESPACE__ . '\fix_code_entity_encoding', 20 );
Note: See TracChangeset
for help on using the changeset viewer.