Changeset 6258 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-explanation.php
- Timestamp:
- 12/11/2017 08:45:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.