WordPress.org

Forums

Contact Form 7
Warning in Dashboard (WP ver. 3.4) (2 posts)

  1. shecky
    Member
    Posted 2 years ago #

    After plugin upgrade, WP ver. 3.4 display a warning message in Dashboard:

    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /home/mhd-01/www.jqueryitalia.org/htdocs/wp-content/plugins/contact-form-7/includes/capabilities.php on line 14

    To resolve this problem change:

    if ( array_key_exists( $cap, $meta_caps ) )
    			$caps[] = $meta_caps[$cap];

    with:

    if (!empty($cap)) {
    		if ( array_key_exists( $cap, $meta_caps ) )
    			$caps[] = $meta_caps[$cap];
    	}

    Regards.
    Davide.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Zeljko Ascic
    Member
    Posted 2 years ago #

    Finally. This worked like a charm. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.