= 7 supporting throwable exceptions for Fatal Errors
* we try to avoid issues with third party plugins that make use
* of the WP native function get_current_screen().
*
* @wponly
*/
try {
echo $editor->display( "termsconds", VikBooking::getTermsConditions(), '100%', 350, 70, 20 );
} catch (Throwable $t) {
echo $t->getMessage() . ' in ' . $t->getFile() . ':' . $t->getLine() . '
';
}
} else {
// we cannot catch Fatal Errors in PHP 5.x
echo $editor->display( "termsconds", VikBooking::getTermsConditions(), '100%', 350, 70, 20 );
}
?>