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
This commit is contained in:
Ryan Boren 2005-09-16 03:25:22 +00:00
parent 41b9b94616
commit cf47e64afc
1 changed files with 2 additions and 2 deletions

View File

@ -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");