Ticket #1082: stunt-htaccess.diff
File stunt-htaccess.diff, 780 bytes (added by , 19 years ago) |
---|
-
wp-admin/admin-functions.php
988 988 $foundit = false; 989 989 if ($markerdata) { 990 990 $state = true; 991 foreach ($markerdata as $ markerline) {991 foreach ($markerdata as $n => $markerline) { 992 992 if (strstr($markerline, "# BEGIN {$marker}")) 993 993 $state = false; 994 if ($state) 995 fwrite($f, "{$markerline}\n"); 994 if ($state) { 995 if ( $n + 1 < count($markerdata) ) 996 fwrite($f, "{$markerline}\n"); 997 else 998 fwrite($f, "{$markerline}"); 999 } 996 1000 if (strstr($markerline, "# END {$marker}")) { 997 1001 fwrite($f, "# BEGIN {$marker}\n"); 998 1002 if (is_array($insertion))