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 11 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 11 months ago by Rattus
  • This topic is not a support question
  • WordPress version: 3.6