Strips close comment and close php tags from file headers used by WP.
Description
See also
Parameters
$str
stringrequired- Header comment to clean up.
Source
function _cleanup_header_comment( $str ) {
return trim( preg_replace( '/\s*(?:\*\/|\?>).*/', '', $str ) );
}
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.