mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
172b13b70a
commit
7e0657c317
@ -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)
|
||||
|
12
xmlrpc.php
12
xmlrpc.php
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user