Title: Undefined variable issuing warning (with WP_DEBUG on)
Last modified: December 4, 2017

---

# Undefined variable issuing warning (with WP_DEBUG on)

 *  Resolved [perryrylance](https://wordpress.org/support/users/perryrylance/)
 * (@perryrylance)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/undefined-variable-issuing-warning-with-wp_debug-on/)
 * The variable $attributes is not defined in ml-slider-lightbox.php on line 180.
 * I’m not sure if it’s supposed to be passed in or global, but in any case it’s
   undefined
 * I suggest changing
 * !strlen($attributes[‘href’])
 * to
 * empty($attributes[‘href’])
 * As this would give identical behaviour without issuing a warning

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-issuing-warning-with-wp_debug-on/#post-9803285)
 * Sorry for not replying here for 2 weeks [@perryrylance](https://wordpress.org/support/users/perryrylance/),
   for some reason I missed this. I just encountered the issue though and we will
   send it out in a release coming soon. Thanks!
 *  [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-issuing-warning-with-wp_debug-on/#post-9943719)
 * [@kbat82](https://wordpress.org/support/users/kbat82/) Did this get in the recent
   release? (i.e. Can we resolve this topic?)
 *  [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * (@kbat82)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-issuing-warning-with-wp_debug-on/#post-9944188)
 * [@davidanderson](https://wordpress.org/support/users/davidanderson/) Not yet 
   but it’s merged in with master. Trying to get one more tweak in (with Juan) then
   we can probably release tomorrow or the next day.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined variable issuing warning (with WP_DEBUG on)’ is closed to new
replies.

 * ![](https://ps.w.org/ml-slider-lightbox/assets/icon.svg?rev=3522449)
 * [MetaSlider Gallery - Image Gallery, Lightbox Galleries, Modal Windows](https://wordpress.org/plugins/ml-slider-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider-lightbox/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Kevin Batdorf](https://wordpress.org/support/users/kbat82/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-issuing-warning-with-wp_debug-on/#post-9944188)
 * Status: resolved