[wp-trac] [WordPress Trac] #27135: get_post_galleries breaks server connection
WordPress Trac
noreply at wordpress.org
Tue Feb 25 23:50:51 UTC 2014
#27135: get_post_galleries breaks server connection
-------------------------------+------------------------------
Reporter: stratboy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Gallery | Version: 3.8.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: performance
-------------------------------+------------------------------
Comment (by ericlewis):
Ah, I see what's going on.
You're hooking onto the post_gallery filter, and then running
`get_post_galleries()`, which runs `do_shortcode_tag( 'gallery' )`, which
runs `gallery_shortcode()`, which runs the `post_gallery` filter, hence
creating an infinite loop.
You mentioned other attempts which also failed - adding it in
`functions.php`, `single.php`. Were both of those attempts within the same
filter callback?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27135#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list