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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-08-20 19:51:43 +00:00
parent 28f552efa5
commit d28c67315a
2 changed files with 18 additions and 17 deletions

View File

@ -837,21 +837,4 @@ function default_password_nag() {
echo '</p></div>'; 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); 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);
}
?> ?>