remove contextual compatiblity, and require functions-compat instead

git-svn-id: http://svn.automattic.com/wordpress/trunk@1777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-10-11 13:22:33 +00:00
parent 172b13b70a
commit 7e0657c317
2 changed files with 2 additions and 18 deletions

View File

@ -1,17 +1,13 @@
<?php
require_once(dirname(__FILE__).'/functions-compat.php');
if (!function_exists('_')) {
function _($string) {
return $string;
}
}
if (!function_exists('floatval')) {
function floatval($string) {
return ((float) $string);
}
}
function get_profile($field, $user = false) {
global $wpdb;
if (!$user)

View File

@ -35,18 +35,6 @@ function starify($string) {
logIO("I", $HTTP_RAW_POST_DATA);
function printr($var, $do_not_echo = false) {
// from php.net/print_r user contributed notes
ob_start();
print_r($var);
$code = htmlentities(ob_get_contents());
ob_clean();
if (!$do_not_echo) {
echo "<pre>$code</pre>";
}
return $code;
}
function mkdir_p($target) {
// from php.net/mkdir user contributed notes
if (file_exists($target)) {