Make WordPress Core


Ignore:
Timestamp:
11/25/2004 04:15:27 PM (22 years ago)
Author:
rboren
Message:

Pass theme in URI when sending update header. Bug 491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r1876 r1881  
    4545
    4646    $newcontent = stripslashes($_POST['newcontent']);
     47    $theme = urlencode($theme);
    4748    if (is_writeable($real_file)) {
    4849        $f = fopen($real_file, 'w+');
    4950        fwrite($f, $newcontent);
    5051        fclose($f);
    51         header("Location: theme-editor.php?file=$file&a=te");
     52        header("Location: theme-editor.php?file=$file&theme=$theme&a=te");
    5253    } else {
    53         header("Location: theme-editor.php?file=$file");
     54        header("Location: theme-editor.php?file=$file&theme=$theme");
    5455    }
    5556
Note: See TracChangeset for help on using the changeset viewer.