mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
General: Restore strpos()
check in wp-admin/load-styles.php
.
This resolves a fatal error on PHP < 8.0, as `wp-includes/compat.php` is not loaded in this file, so `str_starts_with()` may not be available. Follow-up to [55703]. Props dd32, flixos90, DigTek. Fixes #58244. See #58012. Built from https://develop.svn.wordpress.org/trunk@55710 git-svn-id: http://core.svn.wordpress.org/trunk@55222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6064478fa7
commit
27c4548f19
@ -73,7 +73,8 @@ foreach ( $load as $handle ) {
|
|||||||
|
|
||||||
$content = get_file( $path ) . "\n";
|
$content = get_file( $path ) . "\n";
|
||||||
|
|
||||||
if ( str_starts_with( $style->src, '/' . WPINC . '/css/' ) ) {
|
// str_starts_with() is not used here, as wp-includes/compat.php is not loaded in this file.
|
||||||
|
if ( 0 === strpos( $style->src, '/' . WPINC . '/css/' ) ) {
|
||||||
$content = str_replace( '../images/', '../' . WPINC . '/images/', $content );
|
$content = str_replace( '../images/', '../' . WPINC . '/images/', $content );
|
||||||
$content = str_replace( '../js/tinymce/', '../' . WPINC . '/js/tinymce/', $content );
|
$content = str_replace( '../js/tinymce/', '../' . WPINC . '/js/tinymce/', $content );
|
||||||
$content = str_replace( '../fonts/', '../' . WPINC . '/fonts/', $content );
|
$content = str_replace( '../fonts/', '../' . WPINC . '/fonts/', $content );
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55709';
|
$wp_version = '6.3-alpha-55710';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user