WordPress.org

Make WordPress Core

Changeset 12838


Ignore:
Timestamp:
01/26/2010 05:12:38 PM (10 years ago)
Author:
ryan
Message:

Deprecate get_current_user_id(). see #11644

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-deprecated.php

    r12827 r12838  
    9292endif;
    9393
     94/**
     95 * @deprecated 3.0
     96 */
     97function get_current_user_id() {
     98    _deprecated_function( __FUNCTION__, '3.0', '' );
     99
     100    global $current_user;
     101    return $current_user->ID;
     102}
     103
    94104?>
  • trunk/wp-includes/ms-functions.php

    r12828 r12838  
    248248
    249249    return true;
    250 }
    251 
    252 // @todo move to user.php
    253 function get_current_user_id() {
    254     global $current_user;
    255     return $current_user->ID;
    256250}
    257251
Note: See TracChangeset for help on using the changeset viewer.