Changeset 17738 for trunk/wp-content/themes/twentyeleven/inc/widgets.php
- Timestamp:
- 04/28/2011 09:47:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/inc/widgets.php
r17723 r17738 79 79 echo $after_title; 80 80 81 global $post;82 83 81 ?> 84 82 <ol> 85 83 <?php while ( $ephemera->have_posts() ) : $ephemera->the_post(); ?> 86 84 87 <?php if ( 'link' != get_post_format( $post->ID) ) : ?>85 <?php if ( 'link' != get_post_format() ) : ?> 88 86 89 87 <li class="entry-title"> … … 117 115 echo $after_widget; 118 116 119 // Reset the global $the_postas this query will have stomped on it117 // Reset the post globals as this query will have stomped on it 120 118 wp_reset_postdata(); 121 119 … … 163 161 } 164 162 } 165 166 add_action( 'widgets_init', create_function( '', "register_widget( 'Twenty_Eleven_Ephemera_Widget' );" ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)