We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7f136 commit 9c21974Copy full SHA for 9c21974
1 file changed
src/wp-includes/admin-bar.php
@@ -1427,7 +1427,7 @@ function wp_admin_bar_add_color_scheme_to_front_end() {
1427
$color = $_wp_admin_css_colors[ $color_scheme ] ?? null;
1428
$url = $color->url ?? '';
1429
1430
- if ( $url ) {
+ if ( $url && is_readable( $url ) ) {
1431
$css = file_get_contents( $url );
1432
if ( is_string( $css ) && str_contains( $css, '#wpadminbar' ) ) {
1433
$start_position = strpos( $css, '#wpadminbar' );
0 commit comments