Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_cleanup_header_comment [ WordPress Function ]

_cleanup_header_comment ( $str )
Parameters:
  • (string) $str
Returns:
  • (string)
Defined at:



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

See http://core.trac.wordpress.org/ticket/8497

Source


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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics