The $which parameter is added in WP 4.0 -- waiting until the ticket solved
https://core.trac.wordpress.org/ticket/28867#comment:8