Making WordPress.org


Ignore:
Timestamp:
06/19/2016 10:08:49 PM (9 years ago)
Author:
coffee2code
Message:

W.org P2 child theme: For handbook-related templates, use the current post type instead of hard-coding 'handbook' when getting archive url and dynamic sidebar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/sidebar-handbook.php

    r7 r3488  
    66 */
    77
    8 
    9 if ( is_active_sidebar( 'handbook' ) ) : ?>
     8if ( is_active_sidebar( wporg_get_current_handbook() ) ) : ?>
    109    <div id="sidebar">
    1110        <?php do_action( 'before_sidebar' ); ?>
    1211        <ul>
    13             <?php dynamic_sidebar( 'handbook' ); ?>
     12            <?php dynamic_sidebar( wporg_get_current_handbook() ); ?>
    1413        </ul>
    1514        <div class="clear"></div>
Note: See TracChangeset for help on using the changeset viewer.