[wp-trac] [WordPress Trac] #11338: Customer Walker initialize error
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 7 14:08:11 UTC 2009
#11338: Customer Walker initialize error
--------------------------+-------------------------------------------------
Reporter: ShaneF | Owner:
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 2.9
Component: Formatting | Version: 2.9
Severity: major | Resolution:
Keywords: needs-patch |
--------------------------+-------------------------------------------------
Comment(by filosofo):
Replying to [comment:4 dd32]:
> Because its invalid PHP.
>
> for a start: {{{$walker_category = new Walker_Category_Rabbit()}}} -
parenthesis on the end.
I'm pretty sure parentheses are optional, although I can't find any
official documentation that says one way or the other. I've never seen
any syntax warnings when omitting them, most PHP books I've read omit them
frequently, and even [http://php.net/manual/en/language.types.object.php
this PHP manual example of object instantiation] omits them.
However, I'd certainly be interested in seeing any contradicting
documentation you can point me to.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11338#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list