CoreFiles by mySites.guru
custom-background.min.js2 lines, 1,197 bytes, from wordpress-5.5.21.zip
Raw History Compare with 5.5.20
md5
d9683ebc4fbcb974777935504c5b9680
sha1
ce13ff636b266525ad815ca8b704f090417a6b39
sha256
c55ee363c9a4ac51e024552b962cd2b48e725de8e26b8924b42487260b5ccf63
/*! This file is auto-generated */
!function(e){e(document).ready(function(){var o,a=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,c){a.css("background-color",c.color.toString())},clear:function(){a.css("background-color","")}}),e('select[name="background-size"]').change(function(){a.css("background-size",e(this).val())}),e('input[name="background-position"]').change(function(){a.css("background-position",e(this).val())}),e('input[name="background-repeat"]').change(function(){a.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').change(function(){a.css("background-attachment",e(this).is(":checked")?"scroll":"fixed")}),e("#choose-from-library-link").click(function(n){var c=e(this);n.preventDefault(),o||(o=wp.media.frames.customBackground=wp.media({title:c.data("choose"),library:{type:"image"},button:{text:c.data("update"),close:!1}})).on("select",function(){var n=o.state().get("selection").first(),c=e("#_wpnonce").val()||"";e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,_ajax_nonce:c,size:"full"}).done(function(){window.location.reload()})}),o.open()})})}(jQuery);

The same content is in 82 releases, WordPress 5.4.3 to 5.7-beta3. See them all, or every version of this file.