Make WordPress Core

Changeset 17517


Ignore:
Timestamp:
03/09/2011 05:47:25 AM (14 years ago)
Author:
markjaquith
Message:

Make plugin header parsing slightly more liberal (like it was in 3.0), to allow for PHPdoc style headers. props miqrogroove. fixes #16751 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/functions.php

    r17436 r17517  
    43034303
    43044304    foreach ( $all_headers as $field => $regex ) {
    4305         preg_match( '/^[ \t\/*#]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field});
     4305        preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field});
    43064306        if ( !empty( ${$field} ) )
    43074307            ${$field} = _cleanup_header_comment( ${$field}[1] );
Note: See TracChangeset for help on using the changeset viewer.