Make WordPress Core


Ignore:
Timestamp:
03/09/2011 05:46:58 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 trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r17435 r17516  
    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.