Changeset 2941
- Timestamp:
- 04/12/2016 09:42:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r2940 r2941 1133 1133 1134 1134 if ( $summary ) { 1135 // Backticks in excerpts are not automatically wrapped in code tags, so do so. 1136 // e.g. https://developer.wordpress.org/reference/functions/convert_chars/ 1137 if ( false !== strpos( $summary, '`' ) ) { 1138 $summary = preg_replace_callback( 1139 '/`([^`]*)`/', 1140 function ( $matches ) { return '<code>' . htmlentities( $matches[1] ) . '</code>'; }, 1141 $summary 1142 ); 1143 } 1144 1135 1145 // Fix https://developer.wordpress.org/reference/functions/get_extended/ 1136 1146 // until the 'more' delimiter in summary is backticked.
Note: See TracChangeset
for help on using the changeset viewer.