Changeset 1023
- Timestamp:
- 12/03/2014 07:29:57 PM (9 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
r1022 r1023 607 607 $params[ $arg['name'] ]['default'] = $arg['default']; 608 608 609 // If a known default is stated in the parameter's description, try to remove it 610 // since the actual default value is displayed immediately following description. 609 // If a default value was supplied 611 610 if ( ! empty( $arg['default'] ) ) { 611 // Ensure the parameter was marked as optional (sometimes they aren't 612 // properly and explicitly documented as such) 613 $params[ $arg['name'] ]['required'] = 'Optional'; 614 615 // If a known default is stated in the parameter's description, try to remove it 616 // since the actual default value is displayed immediately following description. 612 617 $default = htmlentities( $arg['default'] ); 613 618 $params[ $arg['name'] ]['content'] = str_replace( "default is {$default}.", '', $params[ $arg['name'] ]['content'] );
Note: See TracChangeset
for help on using the changeset viewer.