Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Aug 20, 2018
1 parent 8a48dd6 commit da90000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions edit-post/components/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
position: relative;
padding: 50px 0;




& .components-button {
font-family: $default-font;
}
Expand Down
12 changes: 6 additions & 6 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1375,19 +1375,19 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
$max_upload_size = 0;
}

// Editor Styles
// Editor Styles.
global $editor_styles;
$styles = array();
if ( $editor_styles ) {
foreach ( $editor_styles as $style ) {
if (filter_var($style, FILTER_VALIDATE_URL)) {
if ( filter_var( $style, FILTER_VALIDATE_URL ) ) {
$styles[] = array(
'css' => file_get_contents( $style )
'css' => file_get_contents( $style ),
);
} else {
$file = get_theme_file_path( $style );
$file = get_theme_file_path( $style );
$styles[] = array(
'css' => file_get_contents( get_theme_file_path( $style ) ),
'css' => file_get_contents( get_theme_file_path( $style ) ),
'baseURL' => get_theme_file_uri( $style ),
);
}
Expand All @@ -1406,7 +1406,7 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
'autosaveInterval' => 10,
'maxUploadFileSize' => $max_upload_size,
'allowedMimeTypes' => get_allowed_mime_types(),
'styles' => $styles
'styles' => $styles,
);

$post_autosave = get_autosave_newer_than_post_save( $post );
Expand Down

0 comments on commit da90000

Please sign in to comment.