WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/29/2016 08:44:31 PM (4 years ago)
Author:
ocean90
Message:

i18n tools: In StringExtractor don't strip slashes from URLs.

Props SergeyBiryukov, ocean90.
Fixes #36015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/i18n/extract.php

    r31498 r36781  
    173173                $text = preg_replace( '%^\s+\*\s%m', '', $text );
    174174                $text = str_replace( array( "\r\n", "\n" ), ' ', $text );;
    175                 $text = trim( preg_replace( '%^/\*|//%', '', preg_replace( '%\*/$%', '', $text ) ) );
     175                $text = trim( preg_replace( '%^(/\*|//)%', '', preg_replace( '%\*/$%', '', $text ) ) );
    176176                if ( 0 === stripos( $text, $this->comment_prefix ) ) {
    177177                    $latest_comment = $text;
Note: See TracChangeset for help on using the changeset viewer.