Skip to content

Commit

Permalink
Image Block: Alphabetical order to thumbnail sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Aug 22, 2017
1 parent acd06b6 commit 605bf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/library/image/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ImageBlock extends Component {
const { attributes, setAttributes, focus, setFocus, className, settings } = this.props;
const { url, alt, caption, align, id, href, width, height } = attributes;

const availableSizes = Object.keys( this.state.availableSizes );
const availableSizes = Object.keys( this.state.availableSizes ).sort();
const selectedSize = findKey( this.state.availableSizes, ( size ) => size.source_url === url );
const isResizable = [ 'wide', 'full' ].indexOf( align ) === -1;
const uploadButtonProps = { isLarge: true };
Expand Down

0 comments on commit 605bf9d

Please sign in to comment.