Make WordPress Core

Changeset 49708


Ignore:
Timestamp:
11/29/2020 04:11:34 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Display "You are using a development version" message in the admin footer for Beta or RC versions.

This ensures that the message is displayed when the WP_AUTO_UPDATE_CORE constant is set to beta or rc and the user is on a development version.

Props afragen.
Fixes #51892.

File:
1 edited

Legend:

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

    r49241 r49708  
    247247    if ( ! isset( $cur->response ) ) {
    248248        $cur->response = '';
     249    }
     250
     251    $is_development_version = preg_match( '/alpha|beta|RC/', $cur->version );
     252
     253    if ( $is_development_version && 'latest' === $cur->response ) {
     254        $cur->response = 'development';
    249255    }
    250256
Note: See TracChangeset for help on using the changeset viewer.