Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comments_popup_template

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1710      return get_query_template('single');
1711 }
1712
1713 function get_comments_popup_template() {
1714      if ( file_exists( TEMPLATEPATH . '/comments-popup.php') )
1715           $template = TEMPLATEPATH . '/comments-popup.php';
1716      else
1717           $template = get_theme_root() . '/default/comments-popup.php';
1718
1719      return apply_filters('comments_popup_template', $template);
1720 }
1721
1722 // Borrowed from the PHP Manual user notes. Convert entities, while
1723 // preserving already-encoded entities:
1724 function htmlentities2($myHTML) {
1725      $translation_table=get_html_translation_table (HTML_ENTITIES,ENT_QUOTES);
1726      $translation_table[chr(38)] = '&';
1727      return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&" , strtr($myHTML, $translation_table));
1728 }