Create correct permalinks for child posts of hierarchical post types when default permalinks are used.

Merges [29765] to the 4.0 branch.

props loushou.
fixes #29615.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30260 602fd350-edb4-49c9-b593-d223f7449a82
In `wp_audio|video_shortcode()`, make sure that `autoplay` and `loop` are booleans. Passing `'false'` to them will force them to be active, which is bad. 

Merges [30185] to the 4.0 branch.

props wonderboymusic.
fixes #29825.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30261 602fd350-edb4-49c9-b593-d223f7449a82