Make WordPress Core


Ignore:
Timestamp:
05/04/2009 09:33:58 AM (15 years ago)
Author:
westi
Message:

Move _cleanup_header_comment() to wp-includes so it is always available. Fixes #8497 props Denis-de-Bernardy.

File:
1 edited

Legend:

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

    r11118 r11170  
    31483148
    31493149
     3150
     3151/**
     3152 * Strip close comment and close php tags from file headers used by WP
     3153 * See http://core.trac.wordpress.org/ticket/8497
     3154 *
     3155 * @since 2.8
     3156**/
     3157function _cleanup_header_comment($str) {
     3158    return trim(preg_replace("/\s*(?:\*\/|\?>).*/", '', $str));
     3159}
    31503160?>
Note: See TracChangeset for help on using the changeset viewer.