WordPress.org

Make WordPress Core

Changeset 44467


Ignore:
Timestamp:
01/08/2019 08:17:34 AM (5 months ago)
Author:
flixos90
Message:

Multisite: Update @since tags for site meta introduction.

Fixes #37923. Fixes #40229.

Location:
trunk/src
Files:
6 edited

Legend:

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

    r44455 r44467  
    22632263
    22642264    // 5.1
    2265     if ( $wp_current_db_version < 42836 ) {
     2265    if ( $wp_current_db_version < 44467 ) {
    22662266        $network_id = get_main_network_id();
    22672267        delete_network_option( $network_id, 'site_meta_supported' );
  • trunk/src/wp-includes/class-wp-site-query.php

    r44186 r44467  
    4343     * Metadata query container.
    4444     *
    45      * @since 5.0.0
     45     * @since 5.1.0
    4646     * @var WP_Meta_Query
    4747     */
     
    5151     * Metadata query clauses.
    5252     *
    53      * @since 5.0.0
     53     * @since 5.1.0
    5454     * @var array
    5555     */
     
    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     *
  • trunk/src/wp-includes/functions.php

    r44441 r44467  
    49134913 * will refer to this setting instead of running the query.
    49144914 *
    4915  * @since 5.0.0
     4915 * @since 5.1.0
    49164916 *
    49174917 * @global wpdb $wpdb WordPress database abstraction object.
  • trunk/src/wp-includes/ms-blogs.php

    r43655 r44467  
    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 *
     
    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.
     
    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.
     
    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.
     
    14791479    if ( ! is_site_meta_supported() ) {
    14801480        /* translators: %s: database table name */
    1481         _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.0.0' );
     1481        _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
    14821482        return false;
    14831483    }
     
    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.
     
    15121512    if ( ! is_site_meta_supported() ) {
    15131513        /* translators: %s: database table name */
    1514         _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.0.0' );
     1514        _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
    15151515        return false;
    15161516    }
     
    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.
     
    15421542    if ( ! is_site_meta_supported() ) {
    15431543        /* translators: %s: database table name */
    1544         _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.0.0' );
     1544        _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
    15451545        return false;
    15461546    }
     
    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.
     
    15711571    if ( ! is_site_meta_supported() ) {
    15721572        /* translators: %s: database table name */
    1573         _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.0.0' );
     1573        _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
    15741574        return false;
    15751575    }
     
    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.
     
    15971597    if ( ! is_site_meta_supported() ) {
    15981598        /* translators: %s: database table name */
    1599         _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.0.0' );
     1599        _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.1.0' );
    16001600        return false;
    16011601    }
  • trunk/src/wp-includes/version.php

    r44125 r44467  
    2121 * @global int $wp_db_version
    2222 */
    23 $wp_db_version = 43764;
     23$wp_db_version = 44467;
    2424
    2525/**
  • trunk/src/wp-includes/wp-db.php

    r44345 r44467  
    418418     * Multisite Blog Metadata table
    419419     *
    420      * @since 5.0.0
     420     * @since 5.1.0
    421421     * @var string
    422422     */
Note: See TracChangeset for help on using the changeset viewer.