Changeset 737 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
- Timestamp:
- 07/02/2014 07:55:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r736 r737 474 474 475 475 if ( $tags ) { 476 $encountered_optional = false; 476 477 foreach ( $tags as $tag ) { 477 478 if ( 'param' == $tag['name'] ) { … … 484 485 $params[ $tag['variable'] ]['required'] = 'Optional'; 485 486 $params[ $tag['variable'] ]['content'] = substr( $tag['content'], 10 ); 487 $encountered_optional = true; 488 } elseif ( $encountered_optional ) { 489 $params[ $tag['variable'] ]['required'] = 'Optional'; 486 490 } else { 487 491 $params[ $tag['variable'] ]['required'] = 'Required';
Note: See TracChangeset
for help on using the changeset viewer.