Make WordPress Core

Ticket #52449: patch.diff

File patch.diff, 996 bytes (added by inc2734, 4 years ago)
  • wp-includes/js/dist/components.js

    diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js
    index 5fc87ad..b9ae36a 100644
    a b function getSelectOptions(optionsArray, disableCustomFontSizes) { 
    3913839138      name: option.name,
    3913939139      size: option.size,
    3914039140      style: {
    39141         fontSize: "min( ".concat(option.size, ", ").concat(MAX_FONT_SIZE_DISPLAY, " )")
     39141        fontSize: "min( ".concat(option.size + 'px', ", ").concat(MAX_FONT_SIZE_DISPLAY, " )")
    3914239142      }
    3914339143    };
    3914439144  });
    function FontSizePicker(_ref) { 
    3918039180    }),
    3918139181    onChange: function onChange(_ref2) {
    3918239182      var selectedItem = _ref2.selectedItem;
    39183       var selectedValue = selectedItem.style && selectedItem.style.fontSize;
    39184 
     39183      var selectedValue = selectedItem.size;
    3918539184      _onChange(Number(selectedValue));
    3918639185    }
    3918739186  }), !withSlider && !disableCustomFontSizes && Object(external_this_wp_element_["createElement"])("div", {