/**
*WordPress 防止误发布文章
*https://www.weixiaoduo.com/want-publish/
*/
functionBing_want_publish(){
echo‘<script type=“text/javascript”>
varpublish=document.getElementById(“publish”);
if(publish!==null)publish.onclick=function(){
returnconfirm(“ 您确定要发布这篇文章?”);
};
</script>‘;
}
add_action(‘admin_footer’,‘Bing_want_publish’);