Closed justintadlock closed 7 years ago
The lsx_customizer_sanitize_get_default() in inc/sanitize.php doesn't always return. If you look at the code, it only returns under one condition:
lsx_customizer_sanitize_get_default()
inc/sanitize.php
function lsx_customizer_sanitize_get_default( $id ) { global $lsx_customizer; //LSX_Theme_Customizer $setting = $lsx_customizer->get_setting($id); if ( isset( $setting['default'] ) ) { return $setting['default']; } }
Before the closing }, you should add:
}
return false;
Or:
return '';
Resolved on LSX 2.0.0 branch.
The
lsx_customizer_sanitize_get_default()
ininc/sanitize.php
doesn't always return. If you look at the code, it only returns under one condition:Before the closing
}
, you should add:Or: