remove contextual compatiblity, and require functions-compat instead
git-svn-id: https://develop.svn.wordpress.org/trunk@1777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
370d9aee36
commit
2d58fd7954
|
@ -1,17 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
require_once(dirname(__FILE__).'/functions-compat.php');
|
||||||
|
|
||||||
if (!function_exists('_')) {
|
if (!function_exists('_')) {
|
||||||
function _($string) {
|
function _($string) {
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!function_exists('floatval')) {
|
|
||||||
function floatval($string) {
|
|
||||||
return ((float) $string);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_profile($field, $user = false) {
|
function get_profile($field, $user = false) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
if (!$user)
|
if (!$user)
|
||||||
|
|
12
xmlrpc.php
12
xmlrpc.php
|
@ -35,18 +35,6 @@ function starify($string) {
|
||||||
logIO("I", $HTTP_RAW_POST_DATA);
|
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) {
|
function mkdir_p($target) {
|
||||||
// from php.net/mkdir user contributed notes
|
// from php.net/mkdir user contributed notes
|
||||||
if (file_exists($target)) {
|
if (file_exists($target)) {
|
||||||
|
|
Loading…
Reference in New Issue