Move _wp_get_user_contactmethods() into the registrations functions file so it is always available when required. Fixes #10662.

git-svn-id: https://develop.svn.wordpress.org/trunk@11852 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-08-20 19:51:43 +00:00
parent 9c297a84cb
commit 50bb241850
2 changed files with 18 additions and 17 deletions

View File

@ -837,21 +837,4 @@ function default_password_nag() {
echo '</p></div>';
}
/**
* Setup the default contact methods
*
* @access private
* @since
*
* @return array $user_contactmethods Array of contact methods and their labels.
*/
function _wp_get_user_contactmethods() {
$user_contactmethods = array(
'aim' => __('AIM'),
'yim' => __('Yahoo IM'),
'jabber' => __('Jabber / Google Talk')
);
return apply_filters('user_contactmethods',$user_contactmethods);
}
?>

View File

@ -300,4 +300,22 @@ function wp_create_user($username, $password, $email = '') {
return wp_insert_user($userdata);
}
/**
* Setup the default contact methods
*
* @access private
* @since
*
* @return array $user_contactmethods Array of contact methods and their labels.
*/
function _wp_get_user_contactmethods() {
$user_contactmethods = array(
'aim' => __('AIM'),
'yim' => __('Yahoo IM'),
'jabber' => __('Jabber / Google Talk')
);
return apply_filters('user_contactmethods',$user_contactmethods);
}
?>