Changeset 9823 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-description.php
- Timestamp:
- 05/04/2020 10:00:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-description.php
r6383 r9823 8 8 9 9 namespace DevHub; 10 11 $description = get_description(); 12 $see_tags = get_see_tags(); 13 14 // Omit section if it's empty. 15 if ( ! $description && ! $see_tags ) { 16 return; 17 } 18 10 19 ?> 11 20 … … 13 22 <section class="description"> 14 23 <h2><?php _e( 'Description', 'wporg' ); ?></h2> 15 <?php echo get_description(); ?>24 <?php echo $description; ?> 16 25 17 <?php if ( $see = get_see_tags()) : ?>26 <?php if ( $see_tags ) : ?> 18 27 <h3><?php _e( 'See also', 'wporg' ); ?></h3> 19 28 20 29 <ul> 21 30 <?php 22 foreach ( $see as $tag ) {31 foreach ( $see_tags as $tag ) { 23 32 $see_ref = ''; 24 33 if ( ! empty( $tag['refers'] ) ) {
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)