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:
parent
41b9b94616
commit
cf47e64afc
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user