WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2008 01:03:26 AM (10 years ago)
Author:
ryan
Message:

phpdoc for wp-admin/includes from jacobsantos. see #7527

File:
1 edited

Legend:

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

    r8989 r9053  
    11<?php
    2 // Here we keep the DB structure and option values
    3 
     2/**
     3 * WordPress Schema for installation and upgrading.
     4 *
     5 * Here we keep the DB structure and option values.
     6 *
     7 * @package WordPress
     8 * @subpackage Administration
     9 */
     10
     11/** WordPress Database collate charset */
    412$charset_collate = '';
    513
     
    1422}
    1523
    16 $wp_queries="CREATE TABLE $wpdb->terms (
     24/** Create WordPress database tables SQL */
     25$wp_queries = "CREATE TABLE $wpdb->terms (
    1726 term_id bigint(20) NOT NULL auto_increment,
    1827 name varchar(200) NOT NULL default '',
     
    153162) $charset_collate;";
    154163
     164/**
     165 * Create WordPress options and set the default values.
     166 *
     167 * @since unknown
     168 * @uses $wpdb
     169 * @uses $wp_db_version
     170 */
    155171function populate_options() {
    156172    global $wpdb, $wp_db_version;
     
    281297}
    282298
     299/**
     300 * Execute WordPress role creation for the various WordPress versions.
     301 *
     302 * @since unknown (2.0.0)
     303 */
    283304function populate_roles() {
    284305    populate_roles_160();
     
    290311}
    291312
     313/**
     314 * Create the roles for WordPress 2.0
     315 *
     316 * @since 2.0.0
     317 */
    292318function populate_roles_160() {
    293319    // Add roles
     
    385411}
    386412
     413/**
     414 * Create and modify WordPress roles for WordPress 2.1.
     415 *
     416 * @since 2.1.0
     417 */
    387418function populate_roles_210() {
    388419    $roles = array('administrator', 'editor');
     
    427458}
    428459
     460/**
     461 * Create and modify WordPress roles for WordPress 2.3.
     462 *
     463 * @since 2.3.0
     464 */
    429465function populate_roles_230() {
    430466    $role = get_role( 'administrator' );
     
    435471}
    436472
     473/**
     474 * Create and modify WordPress roles for WordPress 2.5.
     475 *
     476 * @since 2.5.0
     477 */
    437478function populate_roles_250() {
    438479    $role = get_role( 'administrator' );
     
    443484}
    444485
     486/**
     487 * Create and modify WordPress roles for WordPress 2.6.
     488 *
     489 * @since 2.6.0
     490 */
    445491function populate_roles_260() {
    446492    $role = get_role( 'administrator' );
     
    452498}
    453499
     500/**
     501 * Create and modify WordPress roles for WordPress 2.7.
     502 *
     503 * @since 2.7.0
     504 */
    454505function populate_roles_270() {
    455506    $role = get_role( 'administrator' );
Note: See TracChangeset for help on using the changeset viewer.