WordPress.org

Make WordPress Core

Ticket #16778: 16778.diff

File 16778.diff, 619 bytes (added by swissspidy, 5 years ago)
  • src/wp-includes/update.php

    diff --git src/wp-includes/update.php src/wp-includes/update.php
    index 1def316..779fabc 100644
    function wp_version_check( $extra_stats = array(), $force_check = false ) { 
    9696                'multisite_enabled' => $multisite_enabled,
    9797        );
    9898
     99        /**
     100         * Filter the arguments sent as part of the core version check.
     101         *
     102         * @since 4.4.0
     103         *
     104         * @param array $query Version check query arguments.
     105         */
     106        $query = apply_filters( 'core_version_check_query_args', $query );
     107
    99108        $post_body = array(
    100109                'translations' => wp_json_encode( $translations ),
    101110        );