Make WordPress Core


Ignore:
Timestamp:
10/21/2017 11:54:47 AM (7 years ago)
Author:
pento
Message:

Updates: Add the core_version_check_query_args filter.

This filter allows the data being sent for core update checks to be controlled for privacy concerns.

Props toscho, MattyRob, swissspidy, pento.
Fixes #16778.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/update.php

    r41753 r41962  
    9797        'initial_db_version' => get_site_option( 'initial_db_version' ),
    9898    );
     99
     100    /**
     101     * Filter the query arguments sent as part of the core version check.
     102     *
     103     * WARNING: Changing this data may result in your site not receiving security updates.
     104     * Please exercise extreme caution.
     105     *
     106     * @since 4.9.0
     107     *
     108     * @param array $query Version check query arguments.
     109     */
     110    $query = apply_filters( 'core_version_check_query_args', $query );
    99111
    100112    $post_body = array(
Note: See TracChangeset for help on using the changeset viewer.