[wp-trac] [WordPress Trac] #27135: get_post_galleries breaks server connection

WordPress Trac noreply at wordpress.org
Fri Feb 21 20:15:26 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
-------------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Hi. I'm testing locally with this:
>
> v3.8.1 with a custom theme (mine) almost empty.
> firefox 27.0.1 (osx)
> MAMP PRO
>
> I'm trying to use the media.php > get_post_galleries() function but it
> breaks the page: it hangs infinitely OR it immediately stops the
> connection.
>
> It happens in any case, I've tried:
>
> - functions.php
> - functions.php inside a 'post_gallery' filter
> - single.php, just in the page
> - both passing ID or $post object
>
> I taken a look to the function and progressively commented out code until
> I've found that what it breaks all is row 2030:
>
> $gallery = do_shortcode_tag($shortcode);
>
> Hope it helps, regards.

New description:

 Hi. I'm testing locally with this:

 v3.8.1 with a custom theme (mine) almost empty.
 firefox 27.0.1 (osx)
 MAMP PRO

 I'm trying to use the media.php > get_post_galleries() function but it
 breaks the page: it hangs infinitely OR it immediately stops the
 connection.

 It happens in any case, I've tried:

 - functions.php
 - functions.php inside a 'post_gallery' filter
 - single.php, just in the page
 - both passing ID or $post object

 I taken a look to the function and progressively commented out code until
 I've found that what it breaks all is row 2030:
 {{{
 $gallery = do_shortcode_tag($shortcode);
 }}}
 Hope it helps, regards.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27135#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list