From cf47e64afc5df45573b4aeed3a46e6f3a99043ef Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 16 Sep 2005 03:25:22 +0000 Subject: [PATCH] Don't write multiple rewrite rule blocks to htaccess. fixes #1661 git-svn-id: https://develop.svn.wordpress.org/trunk@2886 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 0a7662a8fa..855e2d0e5f 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -963,9 +963,9 @@ function insert_with_markers($filename, $marker, $insertion) { if ($markerdata) { $state = true; foreach($markerdata as $markerline) { - if (strstr($markerline, "# BEGIN {$marker}\n")) $state = false; + if (strstr($markerline, "# BEGIN {$marker}")) $state = false; if ($state) fwrite($f, "{$markerline}\n"); - if (strstr($markerline, "# END {$marker}\n")) { + if (strstr($markerline, "# END {$marker}")) { fwrite($f, "# BEGIN {$marker}\n"); if(is_array($insertion)) foreach($insertion as $insertline) fwrite($f, "{$insertline}\n"); fwrite($f, "# END {$marker}\n");