WP SyntaxHighlighter
add_filter('comments_open', 'wp_sh_allow_tags_and_attribs'); (1 post)

  1. rexdf
    Posted 2 years ago #

    In the file wp-syntaxhighlighter/wp-syntaxhighlighter.php what this is doing?
    add_filter('comments_open', 'wp_sh_allow_tags_and_attribs');
    I cannot find a tag comments_open? And if I active WP SyntaxHighlighter, it will get "Notice: Trying to get property of non-object in /wp-includes/comment-template.php on line 776"
    In comment-template.php on line 776 is:
    function comments_open( $post_id = null ) {

    $_post = get_post($post_id);
    	$open = ( 'open' == $_post->comment_status );//(LINE :776)
    	return apply_filters( 'comments_open', $open, $post_id );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP SyntaxHighlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic