WordPress.org

Making WordPress.org

Changeset 3628


Ignore:
Timestamp:
07/06/2016 07:42:09 PM (5 years ago)
Author:
drewapicture
Message:

developer.wordpress.org: Restore the .source-content class to the Source section tag, which is required for the source code accordion to operate.

See #1802.

File:
1 edited

Legend:

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

    r3626 r3628  
    1313    ?>
    1414    <hr />
    15     <section class="source">
     15    <section class="source-content">
    1616        <h3><?php _e( 'Source', 'wporg' ); ?></h3>
    1717        <p>
     
    3030                    <a href="#" class="less-complete-source"><?php _e( 'Collapse full source code', 'wporg' ); ?></a>
    3131                </span>
     32                <span><a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a></span>
     33            </p>
     34        <?php else : ?>
     35            <p>
     36                <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a>
    3237            </p>
    3338        <?php endif; ?>
    34         <p>
    35             <a href="<?php echo get_source_file_link(); ?>"><?php _e( 'View on Trac', 'wporg' ); ?></a>
    36         </p>
    3739    </section>
    3840<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.