WordPress.org

Make WordPress Core

Ticket #16751: unhose-plugin-phpdoc.patch

File unhose-plugin-phpdoc.patch, 565 bytes (added by miqrogroove, 4 years ago)

Allow phpdoc in php files

  • wp-includes/functions.php

     
    43024302        } 
    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] ); 
    43084308                else