diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index be8c695..8b27efe 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -672,7 +672,7 @@ function drupal_settings_initialize() {
  * the above, depending on where the module is located.
  *
  * @param $type
- *   The type of the item (theme, theme_engine, module, profile).
+ *   The type of the item (theme, theme_engine, module, profile, core).
  * @param $name
  *   The name of the item for which the filename is requested.
  * @param $filename
@@ -687,6 +687,11 @@ function drupal_get_filename($type, $name, $filename = NULL) {
   // drupal_static().
   static $files = array(), $dirs = array();
 
+  if ($type == 'core') {
+    // There can only be one core.
+    return 'core';
+  }
+
   // Profiles are converted into modules in system_rebuild_module_data().
   // @todo Remove false-exposure of profiles as modules.
   $original_type = $type;
