wp_functions.php 1.54 KB
<?php
/**
 * WordPress strongly advises against using functions that start with "wp_"
 * as they are reserved for the core of WordPress and can change with any
 * new release without providing backwards compatability.
 * Any time a wp_ function needs to be called it is added here without the "wp"
 * which calls the actual function.  This way if WordPress changes a function
 * the call only needs to be adjusted here, not the x# of times used else where
 */

function _register_script() {
    $params = func_get_args();
    return call_user_func_array('wp_register_script', $params);
}

function _localize_script() {
    $params = func_get_args();
    return call_user_func_array('wp_localize_script', $params);
}

function _enqueue_script() {
    $params = func_get_args();
    return call_user_func_array('wp_enqueue_script', $params);
}

function _enqueue_style() {
    $params = func_get_args();
    return call_user_func_array('wp_enqueue_style', $params);
}

function _die() {
    $params = func_get_args();
    return call_user_func_array('wp_die', $params);
}

function _get_current_user() {
    $params = func_get_args();
    return call_user_func_array('wp_get_current_user', $params);
}

function _insert_post() {
    $params = func_get_args();
    return call_user_func_array('wp_insert_post', $params);
}

function _new_comment($commentdata) {
    $params = func_get_args();
    return call_user_func_array('wp_new_comment', $params);
}

function _nonce_field() {
    $params = func_get_args();
    return call_user_func_array('wp_nonce_field', $params);
}
?>