Hello. I had the same problem and now I fixed it.
You can fix it by changing your function like follows (let me use mvanfoordt’s example):
function set_tag_cloud_args($args) {
$my_args = array(
'smallest' => 12,
'largest' => 12,
'unit' => 'pt',
'order' => 'ASC', );
$args = wp_parse_args( $args, $my_args );
return $args;
}
Until WP 4.3.x, wp_tag_cloud function was used to directly output (‘echo’ => true), which is the function’s default behavior. In WP 4.4, however, the function is used to set the tag cloud into a variable as a string, without output (‘echo’ => false).
The original description of the custom function overrides the default arguments, where ‘echo’ is set to false. So tag cloud was output at wrong timing (before output of wrapper and title). To resolve it, arguments should not be override, instead, custom arguments should be merged with default arguments.
Hope I could have explained well and it helps you.