WordPress.org

Ready to get started?Download WordPress

Forums

WP-Syntax
geshi.php on line 2026 (1 post)

  1. Michael Simpson
    Member
    Posted 2 years ago #

    I have wp-syntax version 0.9.12 installed along with WP-Syntax Editor Integration Plugin 0.1, WP 3.2.1. I find that sometimes when I simply paste some text into the WordPress post editor (not trying to use this plugin for that text) and look at the page, it generated these errors on my page:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /....../wp-content/plugins/wp-syntax/geshi/geshi.php on line 2026

    Warning: Invalid argument supplied for foreach() in /....../wp-content/plugins/wp-syntax/geshi/geshi.php on line 2026

    I tracked this down to the fact that when I paste, it wraps text in a pre tag like this:

    <pre escaped="true">

    and if I remove the 'escaped="true"' then it is OK.

    I would like the geshi code to handle this situation more gracefully/silently.

    http://wordpress.org/extend/plugins/wp-syntax/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Michael Simpson
  • This topic is not resolved
  • WordPress version: 3.2.1

Tags