bonny / WordPress-Simple-Fields

WordPress plugin that extend Custom Fields to include textareas, WYSIWYG-editor, files, attachments, well basically anything
http://wordpress.org/extend/plugins/simple-fields/
88 stars 23 forks source link

Avoid warnings if Field Group doesn't exist. #96

Open santiagobattaglino opened 10 years ago

santiagobattaglino commented 10 years ago

functions.php, line 1796. Add the following line to avoid warnings if Field Group doesn't exist.

if(!$field_group) return;

bonny commented 10 years ago

can you show some of the surrounding code? my line 1796 is probably not the same as yours..