WordPress at Your Fingertips
function is not described

_cleanup_header_comment() WP 2.8.0

Strip close comment and close php tags from file headers used by WP.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String.

Usage

_cleanup_header_comment( $str );
$str(string) (required)
Header comment to clean up.

Notes

Changelog

Since 2.8.0 Introduced.

Code of _cleanup_header_comment() WP 5.8.2

function _cleanup_header_comment( $str ) {
	return trim( preg_replace( '/\s*(?:\*\/|\?>).*/', '', $str ) );
}