Making WordPress.org

Changeset 2815


Ignore:
Timestamp:
03/25/2016 06:27:08 PM (9 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Auto-link references in parameter descriptions.

  • Add filter 'devhub-format-description' to format_param_description().
  • Also affects changelog text.
File:
1 edited

Legend:

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

    r2814 r2815  
    3030        add_filter( 'the_excerpt', array( __CLASS__, 'autolink_references' ), 11 );
    3131        add_filter( 'the_content', array( __CLASS__, 'autolink_references' ), 11 );
     32        add_filter( 'devhub-format-description', array( __CLASS__, 'autolink_references' ) );
    3233
    3334        add_action( 'the_content', array( __CLASS__, 'fix_unintended_markdown' ) );
     
    237238        $text = self::make_doclink_clickable( $text );
    238239
    239         return $text;
     240        return apply_filters( 'devhub-format-description', $text );
    240241    }
    241242
Note: See TracChangeset for help on using the changeset viewer.