In get_adjacent_post(), $excluded_terms should check term_id rather than term_taxonomy_id.

Merges [30263] (and [30264] [30401]) to the 4.0 branch.

props boonebgorges.
fixes #29663, see #22112.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30405 602fd350-edb4-49c9-b593-d223f7449a82
TinyMCE: fix image captions regexp when wpautop is disabled in wp_editor().

Merges [29730] to the 4.0 branch.

props azaozz.
fixes #29592.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30406 602fd350-edb4-49c9-b593-d223f7449a82
Media Grid: when the modal is open, don't respond to arrow keys when `<textarea>` has focus.

Merges [29777] (and [30378]) to the 4.0 branch.

Props ryelle, adamsilverstein.
Fixes #29725.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30407 602fd350-edb4-49c9-b593-d223f7449a82
Don't display Edit links for attachments user cannot edit.

Merges [29723] to the 4.0 branch.

props skaeser.
fixes #29596.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30408 602fd350-edb4-49c9-b593-d223f7449a82
Media Grid: Don't attempt to delete an attachment that can't be deleted.

Merges [29755] to the 4.0 branch.

props wonderboymusic.
fixes #29597.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30409 602fd350-edb4-49c9-b593-d223f7449a82
Revert [28948] for the 4.0 branch, which caused a regression.

see #29573 for 4.0. see #28350.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30410 602fd350-edb4-49c9-b593-d223f7449a82
Use hash_equals() for old md5 hashes.

Merges [30412] to the 4.0 branch.


git-svn-id: https://develop.svn.wordpress.org/branches/4.0@30413 602fd350-edb4-49c9-b593-d223f7449a82
Form validation for password resets.

Merges [30417] to the 4.0 branch.


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