관리-도구
편집 파일: wp-seo-featured-image.min.js
"use strict";function yst_checkFeaturedImage(a){var b=a.state().get("selection").first().toJSON();(b.width<200||b.height<200)&&(document.getElementById("yst_opengraph_image_warning")||(jQuery('<div id="yst_opengraph_image_warning"><p>'+wpseoMetaboxL10n.featured_image_notice+"</p></div>").insertBefore("#postimagediv"),document.getElementById("postimagediv").style.border="solid #dd3d36",document.getElementById("postimagediv").style.borderWidth="3px 4px 4px 4px")),yst_overrideElemFunction()}function yst_overrideElemFunction(){null!=document.getElementById("remove-post-thumbnail")?(thumbIdCounter=0,removeThumb=document.getElementById("remove-post-thumbnail").onclick,document.getElementById("remove-post-thumbnail").onclick=yst_removeOpengraphWarning):(thumbIdCounter++,10>thumbIdCounter&&setTimeout(yst_overrideElemFunction,100))}function yst_removeOpengraphWarning(){jQuery("#yst_opengraph_image_warning").remove(),document.getElementById("postimagediv").style.border="none",removeThumb()}jQuery(document).ready(function(){var a=wp.media.featuredImage.frame();a.on("select",function(){yst_checkFeaturedImage(a)})});var thumbIdCounter=0,removeThumb;