WordPress.org

Make WordPress Core

Changeset 41965


Ignore:
Timestamp:
10/21/2017 01:45:05 PM (3 years ago)
Author:
pento
Message:

Docs: Expand the docs for the core_version_check_query_args filter.

Add documentation for the parameters in the $query parameter.

Props MattyRob.
Fixes #16778.

File:
1 edited

Legend:

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

    r41962 r41965  
    100100    /**
    101101     * Filter the query arguments sent as part of the core version check.
    102      * 
     102     *
    103103     * WARNING: Changing this data may result in your site not receiving security updates.
    104104     * Please exercise extreme caution.
     
    106106     * @since 4.9.0
    107107     *
    108      * @param array $query Version check query arguments.
     108     * @param array $query {
     109     *     Version check query arguments.
     110     *
     111     *     @type string $version            WordPress version number.
     112     *     @type string $php                PHP version number.
     113     *     @type string $locale             The locale to retrieve updates for.
     114     *     @type string $mysql              MySQL version number.
     115     *     @type string $local_package      The value of the $wp_local_package global, when set.
     116     *     @type int    $blogs              Number of blogs on this WordPress install.
     117     *     @type int    $users              Number of sites on this WordPress install.
     118     *     @type int    $multisite_enabled  Whether this WordPress install uses multisite.
     119     *     @type int    $initial_db_version Database version of WordPress at time of installation.
     120     * }
    109121     */
    110122    $query = apply_filters( 'core_version_check_query_args', $query );
Note: See TracChangeset for help on using the changeset viewer.