Making WordPress.org

Changeset 6200


Ignore:
Timestamp:
12/01/2017 08:46:02 PM (9 years ago)
Author:
obenland
Message:

Main: Stify blog sidebar.

Fixes a bug on sites with outdated sidebar data, where it wouldn't show a sidebar.

See #2861.

File:
1 edited

Legend:

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

    r5998 r6200  
    1313
    1414<aside id="secondary" class="widget-area col-3">
    15         <?php
    16         if ( is_active_sidebar( 'sidebar-1' ) ) :
    17                 dynamic_sidebar( 'sidebar-1' );
    18         else: ?>
    19                 <div class="widget">
    20                         <h4><?php _e( 'Categories', 'wporg' ); ?></h4>
    21                         <ul>
    22                                 <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?>
    23                         </ul>
    24                 </div>
     15        <div class="widget">
     16                <h4><?php _e( 'Categories', 'wporg' ); ?></h4>
     17                <ul>
     18                        <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?>
     19                </ul>
     20        </div>
    2521
    26                 <div class="widget">
    27                         <h4><?php _e( 'Blog Archives', 'wporg' ); ?></h4>
    28                         <ul>
    29                                 <?php wp_get_archives( 'type=monthly&limit=12' ); ?>
    30                         </ul>
    31                 </div>
    32         <?php endif; ?>
     22        <div class="widget">
     23                <h4><?php _e( 'Blog Archives', 'wporg' ); ?></h4>
     24                <ul>
     25                        <?php wp_get_archives( 'type=monthly&limit=12' ); ?>
     26                </ul>
     27        </div>
    3328</aside><!-- #secondary -->
Note: See TracChangeset for help on using the changeset viewer.