WordPress.org

Make WordPress Core

Ticket #11614: 11614-machete.diff

File 11614-machete.diff, 1.9 KB (added by nacin, 5 years ago)
  • deprecated.php

     
    11<?php 
    22/** 
    33 * Deprecated 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 
     5 * removed in a later version. 
    66 * 
    77 * @package WordPress 
    88 * @subpackage Deprecated 
    99 */ 
    1010 
    1111/* 
    12  * Deprecated global variables. 
    13  */ 
    14  
    15 /** 
    16  * The name of the Posts table 
    17  * @global string $tableposts 
    18  * @deprecated Use $wpdb->posts 
    19  */ 
    20 $tableposts = $wpdb->posts; 
    21  
    22 /** 
    23  * The name of the Users table 
    24  * @global string $tableusers 
    25  * @deprecated Use $wpdb->users 
    26  */ 
    27 $tableusers = $wpdb->users; 
    28  
    29 /** 
    30  * The name of the Categories table 
    31  * @global string $tablecategories 
    32  * @deprecated Use $wpdb->categories 
    33  */ 
    34 $tablecategories = $wpdb->categories; 
    35  
    36 /** 
    37  * The name of the post to category table 
    38  * @global string $tablepost2cat 
    39  * @deprecated Use $wpdb->post2cat; 
    40  */ 
    41 $tablepost2cat = $wpdb->post2cat; 
    42  
    43 /** 
    44  * The name of the comments table 
    45  * @global string $tablecomments 
    46  * @deprecated Use $wpdb->comments; 
    47  */ 
    48 $tablecomments = $wpdb->comments; 
    49  
    50 /** 
    51  * The name of the links table 
    52  * @global string $tablelinks 
    53  * @deprecated Use $wpdb->links; 
    54  */ 
    55 $tablelinks = $wpdb->links; 
    56  
    57 /** 
    58  * @global string $tablelinkcategories 
    59  * @deprecated Not used anymore; 
    60  */ 
    61 $tablelinkcategories = 'linkcategories_is_gone'; 
    62  
    63 /** 
    64  * The name of the options table 
    65  * @global string $tableoptions 
    66  * @deprecated Use $wpdb->options; 
    67  */ 
    68 $tableoptions = $wpdb->options; 
    69  
    70 /** 
    71  * The name of the postmeta table 
    72  * @global string $tablepostmeta 
    73  * @deprecated Use $wpdb->postmeta; 
    74  */ 
    75 $tablepostmeta = $wpdb->postmeta; 
    76  
    77 /* 
    7812 * Deprecated functions come here to die. 
    7913 */