[wp-trac] [WordPress Trac] #56037: Call update_post_parent_caches in wp_ajax_query_attachments function
WordPress Trac
noreply at wordpress.org
Tue Aug 2 13:32:30 UTC 2022
#56037: Call update_post_parent_caches in wp_ajax_query_attachments function
----------------------------------------+--------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.1
Component: Media | Version:
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses: performance
----------------------------------------+--------------------------
Comment (by spacedmonkey):
Replying to [comment:4 albatross10]:
> Hello.
>
> This is my first-time Contribution to WordPress. Can I get more
information on where exactly we want to place the function?
>
> Thank You
The function in question can be found in wp-admin/includes/ajax-
actions.php file. update_post_parent_caches Expects an array on post
objects. So pass the array posts into the function after line 3014.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56037#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list