Make WordPress Core


Ignore:
Timestamp:
02/13/2010 06:39:51 AM (15 years ago)
Author:
nacin
Message:

Move deprecated functions to deprecated.php. Deprecate get_the_attachment_link() for wp_get_attachment_link(), get_attachment_icon_src() for wp_get_attachment_image_src(),
get_attachment_icon() and get_attachment_innerHTML() for wp_get_attachment_image(), get_link() for get_bookmark(). Add missing deprecated version numbers. Add inline documentation to pluggable functions that are deprecated. See #11388

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r13080 r13093  
    16371637if ( !function_exists('wp_setcookie') ) :
    16381638/**
    1639  * Sets a cookie for a user who just logged in.
     1639 * Sets a cookie for a user who just logged in. This function is deprecated.
    16401640 *
    16411641 * @since 1.5
     1642 * @deprecated 2.5
    16421643 * @deprecated Use wp_set_auth_cookie()
    16431644 * @see wp_set_auth_cookie()
     
    16591660if ( !function_exists('wp_clearcookie') ) :
    16601661/**
    1661  * Clears the authentication cookie, logging the user out.
     1662 * Clears the authentication cookie, logging the user out. This function is deprecated.
    16621663 *
    16631664 * @since 1.5
     1665 * @deprecated 2.5
    16641666 * @deprecated Use wp_clear_auth_cookie()
    16651667 * @see wp_clear_auth_cookie()
     
    16731675if ( !function_exists('wp_get_cookie_login') ):
    16741676/**
    1675  * Gets the user cookie login.
     1677 * Gets the user cookie login. This function is deprecated.
    16761678 *
    16771679 * This function is deprecated and should no longer be extended as it won't be
     
    16791681 *
    16801682 * @since 2.0.3
     1683 * @deprecated 2.5
    16811684 * @deprecated No alternative
    16821685 *
     
    16841687 */
    16851688function wp_get_cookie_login() {
    1686     _deprecated_function( __FUNCTION__, '2.5', '' );
     1689    _deprecated_function( __FUNCTION__, '2.5' );
    16871690    return false;
    16881691}
     
    16911694if ( !function_exists('wp_login') ) :
    16921695/**
    1693  * Checks a users login information and logs them in if it checks out.
     1696 * Checks a users login information and logs them in if it checks out. This function is deprecated.
    16941697 *
    16951698 * Use the global $error to get the reason why the login failed. If the username
     
    17101713 */
    17111714function wp_login($username, $password, $deprecated = '') {
     1715    _deprecated_function( __FUNCTION__, '2.5', 'wp_signon()' );
    17121716    global $error;
    17131717
Note: See TracChangeset for help on using the changeset viewer.