WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
Fix for Trying to get property of non-object in crayon_wp.class.php on line 637 (1 post)

  1. Rattus
    Member
    Posted 1 year ago #

    634        global $post;
    635
    636        // Go through queued posts and find crayons
    637        $post_id = strval($post->ID);

    Sometimes 'the_content' filter applied for the text not related to post, so I think you need set a condition like:

    if(!$post){
        return $the_content;
    }

    http://wordpress.org/plugins/crayon-syntax-highlighter/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic