Changeset 9823
- Timestamp:
- 05/04/2020 10:00:45 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference
- Files:
-
- 3 edited
-
template-description.php (modified) (2 diffs)
-
template-params.php (modified) (1 diff)
-
template-return.php (modified) (1 diff)
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'] ) ) { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-params.php
r3660 r9823 13 13 <hr /> 14 14 <section class="parameters"> 15 <h 3><?php _e( 'Parameters', 'wporg' ); ?></h3>15 <h2><?php _e( 'Parameters', 'wporg' ); ?></h2> 16 16 <dl> 17 17 <?php foreach ( $params as $param ) : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-return.php
r3626 r9823 14 14 <hr /> 15 15 <section class="return"> 16 <h 3><?php _e( 'Return', 'wporg' ); ?></h3>16 <h2><?php _e( 'Return', 'wporg' ); ?></h2> 17 17 <p><?php echo $return; ?></p> 18 18 </section>
Note: See TracChangeset
for help on using the changeset viewer.