Changeset 771 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
- Timestamp:
- 07/30/2014 09:45:32 PM (11 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
r768 r771 94 94 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> 95 95 <div class="comment-content code-example-container"> 96 <pre class="brush: php; toolbar: false;"><?php echo htmlentities( get_comment_text() );?></pre>96 <pre class="brush: php; toolbar: false;"><?php comment_text(); /* Fully escaped via filter */ ?></pre> 97 97 </div> 98 98 <!-- .comment-content --> … … 671 671 672 672 /** 673 * Does the post type support having examples? 674 * 675 * @param string Optional. The post type name. If blank, assumes current post type. 676 * 677 * @return boolean 678 */ 679 function post_type_supports_examples( $post_type = null ) { 680 $post_type = $post_type ? $post_type : get_post_type(); 681 682 return ( 0 === strpos( $post_type, 'wp-parser-' ) ); 683 } 684 685 /** 673 686 * Retrieve the root directory of the parsed WP code. 674 687 *
Note: See TracChangeset
for help on using the changeset viewer.