"Make `has_shortcode()` recursive/work for nested shortcodes."

sync with WordPress -> https://github.com/WordPress/WordPress/commit/1292ee01519304c939c3528ed211bef5e1e55186