[wp-testers] Tag error in default theme

Steve stevish at gmail.com
Sat Nov 8 00:22:16 GMT 2008


It's definitely a problem in the default theme... here's the line:

printf("<h2 class='center'>Sorry, but there aren't any posts by %s
yet.</h2>",
get_userdatabylogin(get_query_var('author_name'))->display_name);

I'm guessing it's complaining about the "->"... However, since I don't use
objects much, I'm not sure what the coder was going for here. It seems like
they were thinking the function
get_userdatabylogin(get_query_var('author_name')) would return an object, so
they added "->display_name" to get the display_name variable...

On Fri, Nov 7, 2008 at 5:14 PM, Paleo Pat <tpblogeditor at gmail.com> wrote:

> Not happening here with the PrimePress theme...
>
> using WordPress 2.7-beta2-9559.
>
>
> -Paleo Pat
> http://www.politicalbyline.com
>
>
>
>
> On Fri, Nov 7, 2008 at 7:10 PM, Steve <stevish at gmail.com> wrote:
>
> > Using the default theme, when I click on a tag from the main blog page,
> it
> > takes me to this error:
> >
> > *Parse error*: syntax error, unexpected T_OBJECT_OPERATOR in *
> > /home/stevish/public_html/testblog/wp-content/themes/default/archive.php*
> > on
> > line *63
> >
> > *I just re-downloaded and re-installed the dafault theme, and got the
> same
> > problem*...
> > *
> > _______________________________________________
> > wp-testers mailing list
> > wp-testers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-testers
> >
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list