https://core.trac.wordpress.org/ticket/40031