Skip to content

Commit

Permalink
Merge pull request #44 from material-components/fix/13-namespace
Browse files Browse the repository at this point in the history
Add WP_Error namespace and no title default title
  • Loading branch information
ravichdev authored Apr 12, 2021
2 parents 8ed570e + 7969b3f commit dd3d2c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions plugin/assets/src/block-editor/blocks/card/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

.material-design-card__media-close-button {
padding: 2px !important;

& .dashicon {
margin: 0 !important;
}
}

.material-design-card__supporting-text {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ const SearchListItem = ( {
<span
className="woocommerce-search-list__item-name"
dangerouslySetInnerHTML={ {
__html: getHighlightedName( item.name, search ),
__html: getHighlightedName(
item.name || __( '(no title)', 'material-design' ),
search
),
} }
/>
{ item.link ? (
Expand Down
1 change: 1 addition & 0 deletions plugin/php/rest/class-design-assets-rest-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use MaterialDesign\Plugin\Updates\Update_Icons;
use WP_REST_Request;
use WP_REST_Response;
use WP_Error;

/**
* Class Design_Assets_REST_Controller
Expand Down

0 comments on commit dd3d2c8

Please sign in to comment.