WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33387


Ignore:
Timestamp:
08/17/2015 09:08:59 AM (4 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33387 – Description

    initial v1  
    55One method could be to use this as the regular expression, which allows for a PHP opening tag to start off the line (allowing for spaces/tabs before hand)
    66{{{
    7 '/^(?:[ \t]*<\?php)[ \t\/*#@]*' . preg_quote( $header, '/' ) . ':(.*)$/mi'
     7'/^(?:[ \t]*<\?php)?[ \t\/*#@]*' . preg_quote( $header, '/' ) . ':(.*)$/mi'
    88}}}