WordPress.org

Make WordPress Core

Changeset 2886


Ignore:
Timestamp:
09/16/2005 03:25:22 AM (15 years ago)
Author:
ryan
Message:

Don't write multiple rewrite rule blocks to htaccess. fixes #1661

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r2879 r2886  
    964964            $state = true;
    965965            foreach($markerdata as $markerline) {
    966                 if (strstr($markerline, "# BEGIN {$marker}\n")) $state = false;
     966                if (strstr($markerline, "# BEGIN {$marker}")) $state = false;
    967967                if ($state) fwrite($f, "{$markerline}\n");
    968                 if (strstr($markerline, "# END {$marker}\n")) {
     968                if (strstr($markerline, "# END {$marker}")) {
    969969                    fwrite($f, "# BEGIN {$marker}\n");
    970970                    if(is_array($insertion)) foreach($insertion as $insertline) fwrite($f, "{$insertline}\n");
Note: See TracChangeset for help on using the changeset viewer.