Make WordPress Core

Changeset 11852


Ignore:
Timestamp:
08/20/2009 07:51:43 PM (15 years ago)
Author:
westi
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r11784 r11852  
    838838}
    839839
    840 /**
    841  * Setup the default contact methods
    842  *
    843  * @access private
    844  * @since
    845  *
    846  * @return array $user_contactmethods Array of contact methods and their labels.
    847  */
    848 function _wp_get_user_contactmethods() {
    849     $user_contactmethods = array(
    850         'aim' => __('AIM'),
    851         'yim' => __('Yahoo IM'),
    852         'jabber' => __('Jabber / Google Talk')
    853     );
    854     return apply_filters('user_contactmethods',$user_contactmethods);
    855 }
    856 
    857840?>
  • trunk/wp-includes/registration.php

    r11784 r11852  
    301301}
    302302
     303
     304/**
     305 * Setup the default contact methods
     306 *
     307 * @access private
     308 * @since
     309 *
     310 * @return array $user_contactmethods Array of contact methods and their labels.
     311 */
     312function _wp_get_user_contactmethods() {
     313    $user_contactmethods = array(
     314        'aim' => __('AIM'),
     315        'yim' => __('Yahoo IM'),
     316        'jabber' => __('Jabber / Google Talk')
     317    );
     318    return apply_filters('user_contactmethods',$user_contactmethods);
     319}
     320
    303321?>
Note: See TracChangeset for help on using the changeset viewer.