Support » Plugin: WP SyntaxHighlighter » add_filter('comments_open', 'wp_sh_allow_tags_and_attribs');

  • 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.]

  • The topic ‘add_filter('comments_open', 'wp_sh_allow_tags_and_attribs');’ is closed to new replies.