Move _() to compat.php

git-svn-id: http://svn.automattic.com/wordpress/trunk@3901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-22 19:45:49 +00:00
parent e673d82afb
commit 4b02c602d1
2 changed files with 7 additions and 6 deletions

View File

@ -111,4 +111,11 @@ if(!function_exists('http_build_query')) {
return implode($separator, $res); return implode($separator, $res);
} }
} }
if ( !function_exists('_') ) {
function _($string) {
return $string;
}
}
?> ?>

View File

@ -2,12 +2,6 @@
require_once(dirname(__FILE__).'/compat.php'); require_once(dirname(__FILE__).'/compat.php');
if ( !function_exists('_') ) {
function _($string) {
return $string;
}
}
function mysql2date($dateformatstring, $mysqlstring, $translate = true) { function mysql2date($dateformatstring, $mysqlstring, $translate = true) {
global $wp_locale; global $wp_locale;
$m = $mysqlstring; $m = $mysqlstring;