WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
still notices in 3.5.8.1 (2 posts)

  1. najamelan
    Member
    Posted 1 year ago #

    Hi,

    I get this on image upload in wp editor.

    PHP Notice: Undefined index: sizes in ...pluginss/advanced-custom-fields/core/fields/image.php on line 783

    This breaks the ajax call of the image upload for people who have WP_DEBUG on true.

    Also, makes me wonder why ACF needs to run on ajax calls like that. It can be good to load your plugin selectively only where needed (performance gain).

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. najamelan
    Member
    Posted 1 year ago #

    proposed change:

    if( isset( $meta['sizes'] ) && is_array( $meta['sizes'] ) )

    That is without looking at the consequences of what happens if it does not exit, but it will at least avoid the php notice.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.