Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jun 16, 2022
1 parent 7b0196a commit 02c86cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function gutenberg_register_core_block_assets( $block_name ) {
$editor_style_path = "build/block-library/blocks/$block_name/style-editor.css";
$stylesheet_url = gutenberg_url( $style_path );
$stylesheet_path = gutenberg_dir_path() . $style_path;
$stylesheet_path = is_rtl() ? str_replace( 'style.css', 'style-rtl.css', $style_path ) : $style_path;
$stylesheet_path = is_rtl() ? str_replace( 'style.css', 'style-rtl.css', $stylesheet_path ) : $stylesheet_path;

if ( file_exists( $stylesheet_path ) ) {
wp_deregister_style( "wp-block-{$block_name}" );
Expand Down

0 comments on commit 02c86cd

Please sign in to comment.