WordPress.org

Ready to get started?Download WordPress

Forums

Meta Box
FIX for: taxonomy.php on line 160 AND select.php on line 43 (1 post)

  1. Umbrovskis.com
    Member
    Posted 1 year ago #

    [28-Nov-2012 11:24:22] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /var/.../wp-content/plugins/meta-box/inc/fields/select.php on line 43
    [28-Nov-2012 11:24:22] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /var/.../wp-content/plugins/meta-box/inc/fields/taxonomy.php on line 160

    in both files need to replace with (array) before $meta:
    taxonomy.php on line 160
    selected( in_array( $term->slug, $meta ), true, false ),
    with
    selected( in_array( $term->slug, (array)$meta ), true, false ),

    and
    select.php on line 43
    selected( in_array( $value, $meta ), true, false ),
    with
    selected( in_array( $value, (array)$meta ), true, false ),

    http://wordpress.org/extend/plugins/meta-box/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags