From 181e9f7a68804a30500dfc37fff6496ff732730f Mon Sep 17 00:00:00 2001 From: Linus Metzler Date: Sun, 26 Aug 2012 21:34:10 +0200 Subject: [PATCH] Revert "fixed dropdown bug" This reverts commit c89d68fc7c26dbb46b2a5aeb926f1c404688426d. --- lib/cleanup.php | 1352 +++++++++++++++++++++++------------------------ 1 file changed, 676 insertions(+), 676 deletions(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index a2ff0c4..9b565e8 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -1,676 +1,676 @@ - - */ -function roots_root_relative_url($input) { - $output = preg_replace_callback( - '!(https?://[^/|"]+)([^"]+)?!', - create_function( - '$matches', - // If full URL is home_url("/") and this isn't a subdir install, return a slash for relative root - 'if (isset($matches[0]) && $matches[0] === home_url("/") && str_replace("http://", "", home_url("/", "http"))==$_SERVER["HTTP_HOST"]) { return "/";' . - // If domain is equal to home_url("/"), then make URL relative - '} elseif (isset($matches[0]) && strpos($matches[0], home_url("/")) !== false) { return $matches[2];' . - // If domain is not equal to home_url("/"), do not make external link relative - '} else { return $matches[0]; };' - ), - $input - ); - - return $output; -} - -/** - * Terrible workaround to remove the duplicate subfolder in the src of