WPOpenID, now on PHP4
I was hacking on the Wordpress OpenID plugin today, looking for the problem that PHP4 users have been having with it. It seems that when a wordpress plugin hook is made like this
add_action( 'hookname', array( $this, 'functionname' ) );
the object referred to by $this is copied, rather than referenced. Thus, internal object state is not preserved. That was a bugger to track down.
About this entry
You’re currently reading “WPOpenID, now on PHP4”, an entry on VerseLogic
- Published:
- 12.15.06 / 2am
- Category:
- Uncategorized
5 Comments
Jump to comment form | comments rss [?] | trackback uri [?]