Changeset 5761
- Timestamp:
- 08/07/2017 06:54:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/cli.php
r5475 r5761 14 14 add_action( 'devhub_cli_manifest_import', array( __CLASS__, 'action_devhub_cli_manifest_import' ) ); 15 15 add_action( 'devhub_cli_markdown_import', array( __CLASS__, 'action_devhub_cli_markdown_import' ) ); 16 add_filter( 'the_content', array( __CLASS__, 'filter_the_content' ) ); 16 17 } 17 18 … … 256 257 } 257 258 259 /** 260 * Filter the content of command pages 261 */ 262 public static function filter_the_content( $content ) { 263 if ( 'command' !== get_post_type() ) { 264 return $content; 265 } 266 // Transform emdash back to triple-dashes 267 $content = str_replace( '-–', '---', $content ); 268 return $content; 269 } 270 258 271 } 259 272
Note: See TracChangeset
for help on using the changeset viewer.