Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Widgets: Improve performance of has_content method in WP_Widget_Media…
…_Gallery class. In the method `WP_Widget_Media_Gallery::has_content` call `_prime_post_caches` before the foreach loop. This ensures that the post objects are primed in memory before trying to access the post object in `get_post_type`. Props niravsherasiya7707, spacedmonkey, mukesh27. Fixes #58757. git-svn-id: https://develop.svn.wordpress.org/trunk@56512 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information