[wp-trac] [WordPress Trac] #27135: get_post_galleries breaks server connection
WordPress Trac
noreply at wordpress.org
Tue Feb 25 11:50:28 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 stratboy):
Mmm, I'll try again, but the thing is that your test was made in a
'the_content' filter, while mine was made in a 'post_gallery' filter. Is
it maybe that?
And no, no 100 galleries attachments :P only 1 with very few images.
in functions.php
{{{
add_filter('post_gallery','test_filter_gallery');
function test_filter_gallery($attrs){
global $post;
pre_dump(get_post_galleries($post));//breaks!
//$images = get_post_gallery_images(22);//breaks!
return 'ok';
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27135#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list