Simple Fix: PHP < 5.5 compatibility
-
wpbmb-entrez/admin/wbe-settings-helpers.php
Line 689 creates incompatibility with PHP < 5.5. Pre PHP 5.5, empty() only accepts variables. This is an extremely simple fix.
Before:
if ( ! empty( preg_replace( '/\s+/', '', $computed_value ) ) ) { ... }
After:
$computed_value_clean = preg_replace( '/\s+/', '', $computed_value ); if ( ! empty( $computed_value_clean ) ) { ... }
There’s probably a better fix for this as I’m sure someone with more PHP expertise will point out.
- The topic ‘Simple Fix: PHP < 5.5 compatibility’ is closed to new replies.