wpmu_update_blogs_date

The timeline below displays how wordpress function wpmu_update_blogs_date has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Updates the last_updated field for the current site.
 *
 * @since MU (3.0.0)
 */
function wpmu_update_blogs_date()
{
    $site_id = get_current_blog_id();
    update_blog_details($site_id, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU (3.0.0)
     *
     * @param int $blog_id Site ID.
     */
    do_action('wpmu_blog_updated', $site_id);
}

WordPress Version: 5.1

/**
 * Update the last_updated field for the current site.
 *
 * @since MU (3.0.0)
 */
function wpmu_update_blogs_date()
{
    $site_id = get_current_blog_id();
    update_blog_details($site_id, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU (3.0.0)
     *
     * @param int $blog_id Site ID.
     */
    do_action('wpmu_blog_updated', $site_id);
}

WordPress Version: 4.9

/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU (3.0.0)
 */
/**
 * Update the last_updated field for the current site.
 *
 * @since MU (3.0.0)
 */
function wpmu_update_blogs_date()
{
    $site_id = get_current_blog_id();
    update_blog_details($site_id, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU (3.0.0)
     *
     * @param int $blog_id Site ID.
     */
    do_action('wpmu_blog_updated', $site_id);
}

WordPress Version: 4.5

/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU
 */
/**
 * Update the last_updated field for the current site.
 *
 * @since MU
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function wpmu_update_blogs_date()
{
    global $wpdb;
    update_blog_details($wpdb->blogid, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU
     *
     * @param int $blog_id Site ID.
     */
    do_action('wpmu_blog_updated', $wpdb->blogid);
}

WordPress Version: 4.4

/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU
 */
/**
 * Update the last_updated field for the current blog.
 *
 * @since MU
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function wpmu_update_blogs_date()
{
    global $wpdb;
    update_blog_details($wpdb->blogid, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU
     *
     * @param int $blog_id Blog ID.
     */
    do_action('wpmu_blog_updated', $wpdb->blogid);
}

WordPress Version: 4.3

/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU
 */
/**
 * Update the last_updated field for the current blog.
 *
 * @since MU
 *
 * @global wpdb $wpdb
 */
function wpmu_update_blogs_date()
{
    global $wpdb;
    update_blog_details($wpdb->blogid, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU
     *
     * @param int $blog_id Blog ID.
     */
    do_action('wpmu_blog_updated', $wpdb->blogid);
}

WordPress Version: 3.8

/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU
 */
/**
 * Update the last_updated field for the current blog.
 *
 * @since MU
 */
function wpmu_update_blogs_date()
{
    global $wpdb;
    update_blog_details($wpdb->blogid, array('last_updated' => current_time('mysql', true)));
    /**
     * Fires after the blog details are updated.
     *
     * @since MU
     *
     * @param int $blog_id Blog ID.
     */
    do_action('wpmu_blog_updated', $wpdb->blogid);
}

WordPress Version: 3.7

/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU
 */
/**
 * Update the last_updated field for the current blog.
 *
 * @since MU
 */
function wpmu_update_blogs_date()
{
    global $wpdb;
    update_blog_details($wpdb->blogid, array('last_updated' => current_time('mysql', true)));
    do_action('wpmu_blog_updated', $wpdb->blogid);
}