Make WordPress Core

Ticket #27646: docs.upgrade.php.diff

File docs.upgrade.php.diff, 1.3 KB (added by jackreichert, 10 years ago)

patch containing said missing documentation

  • wp-admin/includes/upgrade.php

    diff --git wp-admin/includes/upgrade.php wp-admin/includes/upgrade.php
    index db436cb..3d93d45 100644
    function dbDelta( $queries = '', $execute = true ) { 
    15551555                $queries = explode( ';', $queries );
    15561556                $queries = array_filter( $queries );
    15571557        }
     1558   
     1559    /**
     1560         * Filters install/upgrade queries
     1561     *
     1562     * Filters install/upgrade queries, so that unit tests installer can force the creation of InnoDB tables.
     1563     * This enables transactions to revert the database to its initial state after each test.
     1564         *
     1565         * @since 3.3.0
     1566         *
     1567         * @param WP_User $queries install/upgrade queries.
     1568         */
    15581569        $queries = apply_filters( 'dbdelta_queries', $queries );
    15591570
    15601571        $cqueries = array(); // Creation Queries
    function dbDelta( $queries = '', $execute = true ) { 
    15761587                        // Unrecognized query type
    15771588                }
    15781589        }
     1590   
     1591    /**
     1592         * Filters dbdelta create queries
     1593     *
     1594         * @since 3.3.0
     1595         *
     1596         * @param WP_User $cqueries dbdelta create queries.
     1597         */
    15791598        $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries );
     1599   
     1600    /**
     1601         * Filters dbdelta insert queries
     1602     *
     1603         * @since 3.3.0
     1604         *
     1605         * @param WP_User $iqueries dbdelta insert queries.
     1606         */
    15801607        $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries );
    15811608
    15821609        $global_tables = $wpdb->tables( 'global' );