Make WordPress Core

Changeset 3879


Ignore:
Timestamp:
06/15/2006 09:28:08 PM (19 years ago)
Author:
ryan
Message:

Unlink TinySpell? tmp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/plugins/spellchecker/classes/TinyPspellShell.class.php

    r3664 r3879  
    2828
    2929        $this->tmpfile = tempnam($config['tinypspellshell.tmp'], "tinyspell");
    30         $this->cmd = "cat ". $this->tmpfile ." | " . $config['tinypspellshell.aspell'] . " -a --lang=". $this->lang;
     30        $this->cmd = "cat ". $this->tmpfile ." | " . $config['tinypspellshell.aspell'] . " -a --lang=". $this->lang;
    3131    }
    3232
     
    4545
    4646        $data = shell_exec($this->cmd);
     47        @unlink($this->tmpfile);
    4748        $returnData = array();
    4849        $dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
     
    7475
    7576        $data = shell_exec($this->cmd);
     77        @unlink($this->tmpfile);
    7678        $returnData = array();
    7779        $dataArr = preg_split("/\n/", $data, -1, PREG_SPLIT_NO_EMPTY);
Note: See TracChangeset for help on using the changeset viewer.