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:
parent
28f552efa5
commit
d28c67315a
|
@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue