Making WordPress.org


Ignore:
Timestamp:
06/29/2014 05:39:21 PM (10 years ago)
Author:
coffee2code
Message:

Code Reference: show actual line numbers in source code display. props atimmer. Fixes #535

File:
1 edited

Legend:

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

    r724 r725  
    129129            <h2><?php _e( 'Source', 'wporg' ); ?></h2>
    130130            <div class="source-code-container">
    131                 <pre class="brush: php; toolbar: false;"><?php echo htmlentities( get_source_code() ); ?></pre>
     131                <pre class="brush: php; toolbar: false; first-line: <?php echo esc_attr( get_post_meta( get_the_ID(), '_wp-parser_line_num', true ) ); ?>"><?php echo htmlentities( get_source_code() ); ?></pre>
    132132            </div>
    133133            <p class="source-code-links">
Note: See TracChangeset for help on using the changeset viewer.