Commit 7447e21
committed
Media: Ensure that
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-d223f7449a82wp_get_attachment_metadata can return values from the global $post, if avaiable.1 parent a76f895 commit 7447e21
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6114 | 6114 | | |
6115 | 6115 | | |
6116 | 6116 | | |
6117 | | - | |
| 6117 | + | |
6118 | 6118 | | |
6119 | 6119 | | |
6120 | 6120 | | |
| |||
6130 | 6130 | | |
6131 | 6131 | | |
6132 | 6132 | | |
| 6133 | + | |
| 6134 | + | |
| 6135 | + | |
| 6136 | + | |
| 6137 | + | |
| 6138 | + | |
| 6139 | + | |
| 6140 | + | |
| 6141 | + | |
| 6142 | + | |
6133 | 6143 | | |
6134 | 6144 | | |
6135 | 6145 | | |
| |||
0 commit comments