WordPress.org

Making WordPress.org

Changeset 3264


Ignore:
Timestamp:
05/27/2016 10:26:03 AM (4 years ago)
Author:
ocean90
Message:

Slack: In Trac::format_for_slack() remove processor names for syntax highlighting from code blocks.

Fixes #1711.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/trac.php

    r3096 r3264  
    288288    static function format_for_slack( $text ) {
    289289        $text = str_replace( "\r\n", "\n", $text );
     290        $text = preg_replace( "~^{{{\n?#!([\w+-/]+)$~m", '{{{' , $text ); // {{{#!php
    290291        $text = trim( str_replace(
    291292            array( "\n{{{\n", "\n}}}\n", '{{{', '}}}' ),
Note: See TracChangeset for help on using the changeset viewer.