Changeset 1337 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
- Timestamp:
- 02/26/2015 10:05:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
r1278 r1337 23 23 </div> 24 24 25 <?php if ( ! empty( get_post()->parent ) ) : ?> 25 <?php 26 if ( ! empty( get_post()->post_parent ) ) : 27 $parent = get_post( get_post()->post_parent ); 28 ?> 26 29 <div class="theme-notice notice notice-info"> 27 <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), sprintf( '<a href=" /%1$s">%2$s</a>', $theme->parent->slug, $theme->parent->name ) ); ?></p>30 <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), sprintf( '<a href="%1$s">%2$s</a>', get_permalink( $parent->ID ), $parent->post_title ) ); ?></p> 28 31 </div> 29 32 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.