WordPress.org

Ready to get started?Download WordPress

Forums

WP Better Attachments
[resolved] Error when editing posts (3 posts)

  1. MuViMoTV
    Member
    Posted 1 year ago #

    when i access a post that has attachments i get the following:

    Warning: in_array() expects parameter 2 to be array, string given in /home/popaus/public_html/wp-content/plugins/wp-better-attachments/classes/class-wpba-meta-box.php on line 38

    This lines is repeated 28 times!!!

    I didn't have that issue before i updated to the latest version...

    http://wordpress.org/extend/plugins/wp-better-attachments/

  2. MuViMoTV
    Member
    Posted 1 year ago #

    I looked more into this and there seem to be an issue when one is not excluding any post types...

    The returned value for $disabled_post_types being an empty string "" then passed as an argument to in_array...

    my work around is to add these before the foreach loop...

    if ($disabled_post_types == "")
    $disabled_post_types = array();

    Cheers

  3. dholloran
    Member
    Plugin Author

    Posted 1 year ago #

    It should be all fixed in the latest version you where correct with it being a string instead of an array thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.