Changeset 2755 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/embed.php
- Timestamp:
- 03/17/2016 05:39:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/embed.php
r2190 r2755 29 29 if ( have_posts() ) : 30 30 while ( have_posts() ) : the_post(); 31 32 // setup the theme variable 33 34 $themes = wporg_themes_get_themes_for_query(); 35 $theme = $themes['themes'][0]; 36 37 // note, $theme contains things like active installs and other data to be added eventually 31 // setup the theme variable 32 // note, $theme contains things like active installs and other data to be added eventually 33 $theme = wporg_themes_theme_information( $post->post_name ); 38 34 39 35 ?> … … 47 43 <p class="wp-embed-heading"> 48 44 <a href="<?php the_permalink(); ?>" target="_top"> 49 <?php the_title(); ?>45 <?php echo esc_html( $theme->name ); ?> 50 46 </a> 51 47 </p> 52 48 53 <div class="wp-embed-excerpt"><?php the_excerpt_embed(); ?></div>49 <div class="wp-embed-excerpt"><?php echo wp_trim_words( $theme->description, 55 ); ?></div> 54 50 55 51 <?php
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)