//后台新标签打开文章链接
global $pagenow;
if( $pagenow == 'post.php' ){//这里如果不加的话,就会后台一直js报错
function ymiss_admin_aritical_ctrlenter() {
    echo '<script type="text/javascript">
    var postlink = document.getElementById("edit-slug-box").getElementsByTagName("a");
        for(var i=0;i<postlink.length;i++)
    { postlink[i].target = "_blank"; }
        </script>';
};
add_action('admin_footer', 'ymiss_admin_aritical_ctrlenter');
};
//后台新标签打开顶部网站链接
function ymiss_admin_site_ctrlenter() {
    echo '<script type="text/javascript">
    var sitelink = document.getElementById("wp-admin-bar-site-name").getElementsByClassName("ab-item");
        for(var i=0;i<sitelink.length;i++)
    { sitelink[i].target = "_blank"; }
        </script>';
};
add_action('admin_footer', 'ymiss_admin_site_ctrlenter');