Changeset 58813 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 07/27/2024 12:25:44 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/update.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r58409 r58813 265 265 } 266 266 267 // Include an unmodified $wp_version. 268 require ABSPATH . WPINC . '/version.php'; 269 270 $is_development_version = preg_match( '/alpha|beta|RC/', $wp_version ); 267 $is_development_version = preg_match( '/alpha|beta|RC/', wp_get_wp_version() ); 271 268 272 269 if ( $is_development_version ) { … … 855 852 */ 856 853 function maintenance_nag() { 857 // Include an unmodified $wp_version.858 require ABSPATH . WPINC . '/version.php';859 854 global $upgrading; 860 855 … … 874 869 */ 875 870 $comparison = ! empty( $failed['critical'] ) ? '>=' : '>'; 876 if ( isset( $failed['attempted'] ) && version_compare( $failed['attempted'], $wp_version, $comparison ) ) {871 if ( isset( $failed['attempted'] ) && version_compare( $failed['attempted'], wp_get_wp_version(), $comparison ) ) { 877 872 $nag = true; 878 873 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)