Skip to content

Commit

Permalink
Cherry-picking WordPress 5.3 RC2 bug fixes (#18046)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 21, 2019
1 parent 2a12dcc commit be03bcc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 8 additions & 1 deletion packages/block-library/src/columns/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@
> [data-type="core/column"] > .editor-block-list__block-edit .block-core-columns {
display: flex;
flex-direction: column;
flex: 1 0 auto;

// This flex rule fixes an issue in IE11.
flex: 1 1 auto;

// IE11 does not support `position: sticky`, so we use it here to serve correct Flex rules to modern browsers.
@supports (position: sticky) {
flex: 1;
}
}

// Adjust the individual column block.
Expand Down
3 changes: 0 additions & 3 deletions packages/media-utils/src/components/media-upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ class MediaUpload extends Component {
} else {
const frameConfig = {
title,
button: {
text: __( 'Select' ),
},
multiple,
};
if ( !! allowedTypes ) {
Expand Down
4 changes: 4 additions & 0 deletions packages/url/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ export function removeQueryArgs( url, ...args ) {
* @return {string} The updated URL.
*/
export function prependHTTP( url ) {
if ( ! url ) {
return url;
}

url = url.trim();
if ( ! USABLE_HREF_REGEXP.test( url ) && ! EMAIL_REGEXP.test( url ) ) {
return 'http://' + url;
Expand Down

0 comments on commit be03bcc

Please sign in to comment.