Changeset 6258
- Timestamp:
- 12/11/2017 08:45:14 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
r5843 r6258 56 56 add_action( 'wp_ajax_new_explanation', array( $this, 'new_explanation' ) ); 57 57 add_action( 'wp_ajax_un_publish', array( $this, 'un_publish_explanation' ) ); 58 59 // Content tweaks.60 add_filter( 'syntaxhighlighter_precode', 'html_entity_decode' );61 58 } 62 59 … … 528 525 } 529 526 } 527 530 528 } 531 529 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-explanation.php
r3796 r6258 18 18 // Output the explanation. Passed through 'the_content' on retrieval, thus no escaping. 19 19 remove_filter( 'the_content', array( 'DevHub_Formatting', 'fix_unintended_markdown' ), 1 ); 20 global $post; 21 $orig = $post; 22 $post = get_explanation( get_the_ID() ); 20 23 echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); 24 $post = $orig; 21 25 add_filter( 'the_content', array( 'DevHub_Formatting', 'fix_unintended_markdown' ), 1 ); 22 26 ?>
Note: See TracChangeset
for help on using the changeset viewer.