diff --git a/index.php b/index.php index 8e6e71d4eb..ff20194e2f 100644 --- a/index.php +++ b/index.php @@ -1,14 +1,11 @@ -
+|| WordPress
"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?> +— WordPress"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?>
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 4c880e03d7..d17152d15c 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -111,6 +111,7 @@ if (!$plugins_dir || !$plugin_files) { if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) { $action = "Deactivate"; + $plugin = "$plugin"; } else { $action = "Activate"; } diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c3104401ec..f0ce486d79 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1162,113 +1162,6 @@ function remove_action($tag, $function_to_remove, $priority = 10) { remove_filter($tag, $function_to_remove, $priority); } -/* Highlighting code c/o Ryan Boren */ -function get_search_query_terms($engine = 'google') { - global $s, $s_array; - $referer = urldecode($_SERVER[HTTP_REFERER]); - $query_array = array(); - switch ($engine) { - case 'google': - // Google query parsing code adapted from Dean Allen's - // Google Hilite 0.3. http://textism.com - $query_terms = preg_replace('/^.*q=([^&]+)&?.*$/i','$1', $referer); - $query_terms = preg_replace('/\'|"/', '', $query_terms); - $query_array = preg_split ("/[\s,\+\.]+/", $query_terms); - break; - - case 'lycos': - $query_terms = preg_replace('/^.*query=([^&]+)&?.*$/i','$1', $referer); - $query_terms = preg_replace('/\'|"/', '', $query_terms); - $query_array = preg_split ("/[\s,\+\.]+/", $query_terms); - break; - - case 'yahoo': - $query_terms = preg_replace('/^.*p=([^&]+)&?.*$/i','$1', $referer); - $query_terms = preg_replace('/\'|"/', '', $query_terms); - $query_array = preg_split ("/[\s,\+\.]+/", $query_terms); - break; - - case 'wordpress': - // Check the search form vars if the search terms - // aren't in the referer. - if ( ! preg_match('/^.*s=/i', $referer)) { - if (isset($s_array)) { - $query_array = $s_array; - } else if (isset($s)) { - $query_array = array($s); - } - - break; - } - - $query_terms = preg_replace('/^.*s=([^&]+)&?.*$/i','$1', $referer); - $query_terms = preg_replace('/\'|"/', '', $query_terms); - $query_array = preg_split ("/[\s,\+\.]+/", $query_terms); - break; - } - - return $query_array; -} - -function is_referer_search_engine($engine = 'google') { - $siteurl = get_settings('siteurl'); - $referer = urldecode($_SERVER['HTTP_REFERER']); - //echo "referer is: $referer