WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/19/2010 07:57:03 PM (10 years ago)
Author:
nacin
Message:

Introduce wpdb::tables() to fetch table names on a global or blog scope. Remove very old and long deprecated $table{table} globals, fixes #11614. See #12083

File:
1 edited

Legend:

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

    r13098 r13229  
    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 */
    10 
    11 /*
    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;
    7610
    7711/*
Note: See TracChangeset for help on using the changeset viewer.