[wp-testers] 2.5 upgrade error- coding?
Ryan Boren
ryan at boren.nu
Mon Mar 24 20:42:13 GMT 2008
On Mon, Mar 24, 2008 at 1:07 PM, MichaelH <justmichaelh at gmail.com> wrote:
> > On Mon, Mar 24, 2008 at 11:26 AM, CoralPost <tl at coralpost.net> wrote:
> >> hello
> >>
> >> Just upgraded to 2.5. Nice BTW but, I am receiving this error at the
> >> top of each post:
> >>
> >> "Warning: array_key_exists() [function.array-key-exists]: The first
> >> argument should be either a string or an integer in
> >> /home/myfault/public_html/wp-includes/category-template.php on line 192"
> >>
> >> This would seem to suggest a coding error, but I am not a PHP guru.
> >>
> >> While this appears at the top of each post, clicking on that post
> >> displays properly and all else seems to be working fine.
> >>
> >> Ideas? Assistance?
> >
> > Are you using the function in_category() in your templates? If so, how
> > is it being used? It expects either a category name or category ID to
> > be passed to it.
>
>
> This question is also being bandied about the Forums:
> http://wordpress.org/support/topic/163178
I reproduced this by passing false to in_category(). 2.3 looks like
it should have this same problem, however.
Anyhow, changeset 7505 fixes the case where false is passed.
http://trac.wordpress.org/changeset/7505
More information about the wp-testers
mailing list