Making WordPress.org


Ignore:
Timestamp:
12/18/2015 06:15:42 PM (11 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Allow use of 'code' tags (generally added by parser through use of backticks in source) in parameter descriptions.

  • Allow use of 'code' tags in parameter descriptions (by unencoding the tag).
  • Consolidate parameter description formatting into DevHub_Formatting::format_param_description().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r2205 r2206  
    633633                                                $params[ $tag['variable'] ]['required'] = 'Required';
    634634                                        }
    635                                         $params[ $tag['variable'] ]['content'] = htmlentities( $params[ $tag['variable'] ]['content'] );
    636                                         $params[ $tag['variable'] ]['content'] = \DevHub_Formatting::make_doclink_clickable( $params[ $tag['variable'] ]['content'] );
     635                                        $params[ $tag['variable'] ]['content'] = \DevHub_Formatting::format_param_description( $params[ $tag['variable'] ]['content'] );
    637636                                }
    638637                        }
Note: See TracChangeset for help on using the changeset viewer.