[wp-hackers] get_themes(); in WordPress 3.0.5?

Otto otto at ottodestruct.com
Thu Mar 24 21:55:04 UTC 2011


get_themes() is a heavy call on sites that have a lot of themes, since
it goes and reads every theme's info.

However, I can't see it "crashing Apache". At most, you'd get an out
of memory error.

-Otto



On Thu, Mar 24, 2011 at 1:59 PM, John Eckman <eckman.john at gmail.com> wrote:
> Background:
> Recent releases of wpbook, my plugin in the repo, have been crashing apache
> on WordPress 3.0.5 sites. (And perhaps other versions, but notably not 3.1
> sites).
>
> Investigated it a bit, found that a simple call to get_themes(); (at least
> in the context of the wpbook plugin) is enough to cause the crash.
>
> Question:
>
> Is this a known issue?
>
> I saw some trac tickets relating to get_themes() but nothing that seemed
> obviously related.
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list