From a2b6757246de42be27b2b24fc4393ce5edd07478 Mon Sep 17 00:00:00 2001 From: rboren Date: Wed, 8 Dec 2004 00:23:02 +0000 Subject: [PATCH] Remove call to undefined function clear_smarty_cache(). Bug 424. git-svn-id: http://svn.automattic.com/wordpress/trunk@1917 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 1 - wp-blog-header.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index f006b20b28..d17721f218 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -492,7 +492,6 @@ case 'deletecomment': } else { header('Location: '. get_settings('siteurl') .'/wp-admin/edit.php?p='.$p.'&c=1#comments'); } - clear_smarty_cache(); break; diff --git a/wp-blog-header.php b/wp-blog-header.php index 0183e36818..14aa8f3b56 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -14,7 +14,7 @@ $query_vars = array(); if ((isset($_GET['error']) && $_GET['error'] == '404') || ((! empty($_SERVER['PATH_INFO'])) && ('/' != $_SERVER['PATH_INFO']) && - (false === strpos($_SERVER['PATH_INFO'], $_SERVER['SCRIPT_NAME'])) + (false === strpos($_SERVER['PATH_INFO'], $_SERVER['PHP_SELF'])) )) { // If we match a rewrite rule, this will be cleared.