How to Integrate Trac and WordPress (as done on the WP Development blog)?

Here’s the source of the functionality. It’s just a content filter and some basic regex that one of my coworkers at Automattic wrote. add_filter( ‘the_content’, ‘markup_wporg_links’ ); add_filter( ‘comment_text’, ‘markup_wporg_links’ ); function markup_wporg_links( $content ) { $find = array( ‘/(\ |^)#(\d{3,6})(\b|$)/i’, // core trac ticket #1234-core in http://core.trac.wordpress.org/ticket/ ‘/(\ |^)r(\d{3,6})(\b|$)/i’, // core changeset r1234-core in … Read more

tech