esc_url
在样式表URL上运行converts those characters. 你可以用几个过滤器来解决这个问题。
function style_params($src, $handle) {
if (\'twentyfourteen-style\' == $handle) {
add_filter(\'clean_url\',\'alter_clean_url\',10,3);
}
return $src;
}
add_filter(\'style_loader_src\',\'style_params\',10,2);
function alter_clean_url($good_protocol_url, $original_url, $_context ) {
remove_filter(\'clean_url\',\'alter_clean_url\',10,3);
$good_protocol_url = html_entity_decode($good_protocol_url);
$good_protocol_url = $good_protocol_url.\'&abc=def\';
return $good_protocol_url;
}