CoreFiles by mySites.guru
custom-background.min.js2 lines, 1,156 bytes, from wordpress-5.5.zip
Raw History Compare with 5.4.26
md5
722661f3c458461e17f42ccb91d6d951
sha1
4c6d85580aea7b926d7860a2c5fb3fd9353099bd
sha256
2ddc462c0cc301b7f29753cef01950c1b9fd0a0eee1359eea564c813cb648648
/*! This file is auto-generated */
!function(e){e(document).ready(function(){var o,t=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,c){t.css("background-color",c.color.toString())},clear:function(){t.css("background-color","")}}),e('select[name="background-size"]').change(function(){t.css("background-size",e(this).val())}),e('input[name="background-position"]').change(function(){t.css("background-position",e(this).val())}),e('input[name="background-repeat"]').change(function(){t.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').change(function(){t.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();e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,size:"full"}).done(function(){window.location.reload()})}),o.open()})})}(jQuery);

The same content is in 27 releases, WordPress 5.4-beta1 to 5.6-beta2. See them all, or every version of this file.