diff --git a/wp-includes/class-language.php b/wp-includes/class-language.php deleted file mode 100644 index d72051e87b..0000000000 --- a/wp-includes/class-language.php +++ /dev/null @@ -1,57 +0,0 @@ -author = $author; - $this->author_url = $author_url; - $this->charset = $charset; - $this->name = $name; - $this->strings = $strings; - } - - function str($key, $vars = '') { - if (!isset($this->strings[$key])) { // not using array_key_exists() because it is slower - return false; - } - if (empty($vars)) { - print($this->strings[$key]); - return true; - } - else { - if (strstr($vars, ',')) { - $vars = explode(',', $vars); - } - else { - $vars = array($vars); - } - $string = $this->strings[$key]; - for ($i = 0; $i < count($vars); $i++) { - $string = @str_replace("__".$i, $vars[$i], $string); - if (!$string) { - print('

Error, could not replace __'.$i - .' with '.$vars[$i].' in string '.$key.'.

' - ); - } - } - print($string); - return true; - } - } -} - -?> \ No newline at end of file