Making WordPress.org


Ignore:
Timestamp:
06/19/2014 04:23:09 PM (10 years ago)
Author:
coffee2code
Message:

Code Reference: use htmlentities() instead of esc_html() for source code display. Fixes #512

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php

    r687 r714  
    133133            <h2><?php _e( 'Source', 'wporg' ); ?></h2>
    134134            <div class="source-code-container">
    135                 <pre class="brush: php; toolbar: false;"><?php echo esc_html( get_source_code() ); ?></pre>
     135                <pre class="brush: php; toolbar: false;"><?php echo htmlentities( get_source_code() ); ?></pre>
    136136            </div>
    137137            <p class="source-code-links">
Note: See TracChangeset for help on using the changeset viewer.