wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_cleanup_header_comment › WordPress Function

Da2.8.0
Deprecaton/a
_cleanup_header_comment ( $str )
Accedi:
  • private
Parametri:
  • (string) $str Header comment to clean up.
    Richiesto:
Vedi:
Ritorna:
  • (string)
Definito a:
Codex:

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



Sorgenti

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