Skip to content

Commit

Permalink
Add "img" as a keyword for the image block (WordPress#10955)
Browse files Browse the repository at this point in the history
* Add "img" as a keyword for the image block

* Add comment for future maintainers on why we don't translate "img"
  • Loading branch information
chrisvanpatten authored and antpb committed Oct 26, 2018
1 parent 2cad07f commit 3664703
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ export const settings = {

category: 'common',

keywords: [ __( 'photo' ) ],
keywords: [
'img', // "img" is not translated as it is intended to reflect the HTML <img> tag.
__( 'photo' ),
],

attributes: blockAttributes,

Expand Down

0 comments on commit 3664703

Please sign in to comment.