Make WordPress Core

Ticket #37923: 37923.18.diff

File 37923.18.diff, 3.8 KB (added by spacedmonkey, 6 years ago)
  • src/wp-includes/class-wp-site-query.php

     
    108108         *
    109109         * @since 4.6.0
    110110         * @since 4.8.0 Introduced the 'lang_id', 'lang__in', and 'lang__not_in' parameters.
    111          * @since 5.0.0 Introduced the 'update_site_meta_cache', 'meta_query', 'meta_key',
     111         * @since 5.1.0 Introduced the 'update_site_meta_cache', 'meta_query', 'meta_key',
    112112         *              'meta_value', 'meta_type' and 'meta_compare' parameters.
    113113         *
    114114         * @param string|array $query {
  • src/wp-includes/functions.php

     
    48514851 * a setting for the main network, making it essentially a global setting. Subsequent requests
    48524852 * will refer to this setting instead of running the query.
    48534853 *
    4854  * @since 5.0.0
     4854 * @since 5.1.0
    48554855 *
    48564856 * @global wpdb $wpdb WordPress database abstraction object.
    48574857 *
  • src/wp-includes/ms-blogs.php

     
    699699 * Adds any sites from the given ids to the cache that do not already exist in cache.
    700700 *
    701701 * @since 4.6.0
    702  * @since 5.0.0 Introduced the `$update_meta_cache` parameter.
     702 * @since 5.1.0 Introduced the `$update_meta_cache` parameter.
    703703 * @access private
    704704 *
    705705 * @see update_site_cache()
     
    723723 * Updates sites in cache.
    724724 *
    725725 * @since 4.6.0
    726  * @since 5.0.0 Introduced the `$update_meta_cache` parameter.
     726 * @since 5.1.0 Introduced the `$update_meta_cache` parameter.
    727727 *
    728728 * @param array $sites             Array of site objects.
    729729 * @param bool  $update_meta_cache Whether to update site meta cache. Default true.
     
    750750 * Performs SQL query to retrieve all metadata for the sites matching `$site_ids` and stores them in the cache.
    751751 * Subsequent calls to `get_site_meta()` will not need to query the database.
    752752 *
    753  * @since 5.0.0
     753 * @since 5.1.0
    754754 *
    755755 * @param array $site_ids List of site IDs.
    756756 * @return array|false Returns false if there is nothing to update. Returns an array of metadata on success.
     
    14651465/**
    14661466 * Adds metadata to a site.
    14671467 *
    1468  * @since 5.0.0
     1468 * @since 5.1.0
    14691469 *
    14701470 * @param int    $site_id    Site ID.
    14711471 * @param string $meta_key   Metadata name.
     
    14991499 * value, will keep from removing duplicate metadata with the same key. It also
    15001500 * allows removing all metadata matching key, if needed.
    15011501 *
    1502  * @since 5.0.0
     1502 * @since 5.1.0
    15031503 *
    15041504 * @param int    $site_id    Site ID.
    15051505 * @param string $meta_key   Metadata name.
     
    15281528/**
    15291529 * Retrieves metadata for a site.
    15301530 *
    1531  * @since 5.0.0
     1531 * @since 5.1.0
    15321532 *
    15331533 * @param int    $site_id Site ID.
    15341534 * @param string $key     Optional. The meta key to retrieve. By default, returns
     
    15561556 *
    15571557 * If the meta field for the site does not exist, it will be added.
    15581558 *
    1559  * @since 5.0.0
     1559 * @since 5.1.0
    15601560 *
    15611561 * @param int    $site_id    Site ID.
    15621562 * @param string $meta_key   Metadata key.
     
    15871587/**
    15881588 * Deletes everything from site meta matching meta key.
    15891589 *
    1590  * @since 5.0.0
     1590 * @since 5.1.0
    15911591 *
    15921592 * @param string $meta_key Metadata key to search for when deleting.
    15931593 * @return bool Whether the site meta key was deleted from the database.
  • src/wp-includes/wp-db.php

     
    417417        /**
    418418         * Multisite Blog Metadata table
    419419         *
    420          * @since 5.0.0
     420         * @since 5.1.0
    421421         * @var string
    422422         */
    423423        public $blogmeta;