Make WordPress Core

Changeset 12871


Ignore:
Timestamp:
01/27/2010 02:10:32 PM (15 years ago)
Author:
ryan
Message:

Move deprecated admin functions to wp-admin/includes/deprecated.php. Props nacin. fixes #12024

Location:
trunk
Files:
2 edited

Legend:

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

    r12824 r12871  
    22/**
    33 * Deprecated admin functions from past WordPress versions. You shouldn't use these
    4  * globals and functions and look for the alternatives instead. The functions
    5  * and globals will be removed in a later version.
     4 * functions and look for the alternatives instead. The functions will be removed
     5 * in a later version.
    66 *
    77 * @package WordPress
    88 * @subpackage Deprecated
    99 */
     10
     11/*
     12 * Deprecated functions come here to die.
     13 */
     14
     15/**
     16 * @since 2.1
     17 * @deprecated 2.1
     18 * @deprecated Use wp_tiny_mce().
     19 * @see wp_tiny_mce()
     20 */
     21function tinymce_include() {
     22    _deprecated_function( __FUNCTION__, '2.1', 'wp_tiny_mce()' );
     23
     24    wp_tiny_mce();
     25}
     26
     27/**
     28 * Unused Admin function.
     29 *
     30 * @since 2.0
     31 * @deprecated 2.5
     32 *
     33 */
     34function documentation_link() {
     35    _deprecated_function( __FUNCTION__, '2.5', '' );
     36    return;
     37}
    1038
    1139/**
  • trunk/wp-includes/deprecated.php

    r12733 r12871  
    777777
    778778/**
    779  * @since 2.1
    780  * @deprecated 2.1
    781  * @deprecated Use wp_tiny_mce().
    782  * @see wp_tiny_mce()
    783  */
    784 function tinymce_include() {
    785     _deprecated_function( __FUNCTION__, '2.1', 'wp_tiny_mce()' );
    786 
    787     wp_tiny_mce();
    788 }
    789 
    790 /**
    791779 * @since 1.2
    792780 * @deprecated 2.1
     
    13111299    _deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' );
    13121300    return wp_create_user($username, $password, $email);
    1313 }
    1314 
    1315 /**
    1316  * Unused Admin function.
    1317  *
    1318  * @since 2.0
    1319  * @deprecated 2.5
    1320  *
    1321  */
    1322 function documentation_link() {
    1323     _deprecated_function( __FUNCTION__, '2.5', '' );
    1324     return;
    13251301}
    13261302
Note: See TracChangeset for help on using the changeset viewer.