added a fallback implementation which should only trigger on drupal for a missing function provided by the wordpress plugin