Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Media: Ensure that
wp_get_attachment_metadata
can return values fro…
…m the global `$post`, if avaiable. In [49084] (for #50679), wp_get_attachment_metadata() was changed to improve performance, but it had the side effect of eliminating the ability to call it with no arguments and have it default to using the global $post. This change restores that ability, while keeping the performance improvements from the original change. Fixes #52196. Props cfinke, hellofromTonya, mukesh27, dilipbheda, Mista-Flo, audrasjb, SergeyBiryukov, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@50039 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information