We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce80e7a commit 8cc52a2Copy full SHA for 8cc52a2
src/wp-includes/script-loader.php
@@ -3130,8 +3130,7 @@ static function ( $a, $b ) {
3130
}
3131
3132
// Get the styles if we don't already have them.
3133
- $style['css'] = @file_get_contents( $style['path'] );
3134
- if ( false === $style['css'] ) {
+ if ( ! is_readable( $style['path'] ) ) {
3135
_doing_it_wrong(
3136
__FUNCTION__,
3137
sprintf(
@@ -3145,6 +3144,7 @@ static function ( $a, $b ) {
3145
3144
);
3146
continue;
3147
+ $style['css'] = file_get_contents( $style['path'] );
3148
3149
/*
3150
* Check if the style contains relative URLs that need to be modified.
0 commit comments