WordPress.org

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 2 years 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

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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