WordPress.org

Make WordPress Core

Ticket #46576: 46576.patch

File 46576.patch, 1.1 KB (added by m_uysl, 3 years ago)
  • src/wp-admin/includes/upgrade.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    25252525function dbDelta( $queries = '', $execute = true ) {
    25262526        global $wpdb;
    25272527
     2528        /**
     2529         * Filter the delta queries before run. Return a non-null value to cause dbDelta()
     2530         * to return early.
     2531         *
     2532         * @since 5.x
     2533         *
     2534         * @param null|string     $result  Default null.
     2535         * @param string[]|string $queries The query to run. Can be multiple queries
     2536         *                                 in an array, or a string of queries separated by
     2537         *                                 semicolons.
     2538         * @param bool            $execute Whether or not to execute the query right away.
     2539         *
     2540         */
     2541        $pre = apply_filters( 'pre_dbdelta', null, $queries, $execute );
     2542        if ( null !== $pre ) {
     2543                return $pre;
     2544        }
     2545
     2546
    25282547        if ( in_array( $queries, array( '', 'all', 'blog', 'global', 'ms_global' ), true ) ) {
    25292548                $queries = wp_get_db_schema( $queries );
    25302549        }