Skip to content

Commit 349519e

Browse files
committed
Merge pull request #44 from material-components/fix/13-namespace
Add WP_Error namespace and no title default title
2 parents 4068b80 + 3b71153 commit 349519e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

plugin/assets/src/block-editor/blocks/card/editor.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636

3737
.material-design-card__media-close-button {
3838
padding: 2px !important;
39+
40+
& .dashicon {
41+
margin: 0 !important;
42+
}
3943
}
4044

4145
.material-design-card__supporting-text {

plugin/assets/src/block-editor/components/posts-control/item.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ const SearchListItem = ( {
8585
<span
8686
className="woocommerce-search-list__item-name"
8787
dangerouslySetInnerHTML={ {
88-
__html: getHighlightedName( item.name, search ),
88+
__html: getHighlightedName(
89+
item.name || __( '(no title)', 'material-design' ),
90+
search
91+
),
8992
} }
9093
/>
9194
{ item.link ? (

plugin/php/rest/class-design-assets-rest-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
use MaterialDesign\Plugin\Updates\Update_Fonts;
2929
use MaterialDesign\Plugin\Updates\Update_Icons;
30-
use WP_Error;
3130
use WP_REST_Request;
3231
use WP_REST_Response;
32+
use WP_Error;
3333

3434
/**
3535
* Class Design_Assets_REST_Controller

0 commit comments

Comments
 (0)