WordPress.org

Ready to get started?Download WordPress

Forums

WP-Footnotes
Conflict with Yet Another Related Posts Plugin (YARPP) (2 posts)

  1. MK Safi
    Member
    Posted 2 years ago #

    Hi,

    When saving a draft that contains footnotes, the YARPP metabox in the WP editor displays the following error:

    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in \wp-content\plugins\wp-footnotes\footnotes.php on line 167

    The faulty line in footnotes.php is

    if ( array_key_exists(get_post_meta($post->ID, 'footnote_style', true), $this->styles) ) {

    If you simply precede this line with

    if (is_admin()) return;

    The problem goes away.

    Thanks!

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

  2. Truth
    Member
    Posted 2 years ago #

    Thanks for this fix! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic