Changeset 55988 for trunk/src/wp-admin/includes/update-core.php
- Timestamp:
- 06/22/2023 02:34:56 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update-core.php
r55824 r55988 1141 1141 $mysql_version = $wpdb->db_version(); 1142 1142 $old_wp_version = $GLOBALS['wp_version']; // The version of WordPress we're updating from. 1143 $development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release.1143 $development_build = ( str_contains( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release. 1144 1144 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); 1145 1145 … … 1765 1765 1766 1766 if ( file_exists( "{$directory}example.html" ) 1767 && false !== strpos( file_get_contents( "{$directory}example.html" ), '<title>Genericons</title>' )1767 && str_contains( file_get_contents( "{$directory}example.html" ), '<title>Genericons</title>' ) 1768 1768 ) { 1769 1769 $files[] = "{$directory}example.html"; … … 1775 1775 static function( $dir ) { 1776 1776 // Skip any node_modules directories. 1777 return false === strpos( $dir, 'node_modules' );1777 return ! str_contains( $dir, 'node_modules' ); 1778 1778 } 1779 1779 );
Note: See TracChangeset
for help on using the changeset viewer.