Changeset 3048
- Timestamp:
- 04/29/2016 06:31:02 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r3047 r3048 35 35 add_filter( 'devhub-format-description', array( __CLASS__, 'fix_param_hash_formatting' ), 9 ); 36 36 add_action( 'the_content', array( __CLASS__, 'fix_unintended_markdown' ) ); 37 38 add_filter( 'devhub-function-return-type', array( __CLASS__, 'autolink_references' ) ); 37 39 } 38 40 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r3047 r3048 677 677 $description = empty( $return['content'] ) ? '' : \DevHub_Formatting::make_doclink_clickable( $return['content'] ); 678 678 $type = empty( $return['types'] ) ? '' : esc_html( implode( '|', $return['types'] ) ); 679 $type = apply_filters( 'devhub-function-return-type', $type, $post_id ); 679 680 680 681 return "<span class='return-type'>({$type})</span> $description";
Note: See TracChangeset
for help on using the changeset viewer.