WordPress Plugins: Adhesive and RunPHP
Okay, I’ve got to admit I enjoy the feeling of accomplishment of programming. Especially when I’m actually doing something useful, like plugins for WordPress.
First I “fixed” (if you want to call it that) the Adhesive plug-in to work with the latest Word Press nightlies. (I’m using 2004-10-09.) Since WP 1.3 now uses the global $wp_query object to store the $posts array, the 1.5 version of Adhesive didn’t quite work.
I also wrote my first plug-in: RunPHP. It allows you to drop PHP code into the middle of your PHP story and have it work, capturing echo statements and all. I’ve only just started using it, but it seems to handle everything I throw at it.
I’ll admit I don’t like the WP source code much. It’s not written well, both semantically and syntactically. (I won’t even get into lack of useful comments and documentation.) I had to back-track function calls to figure out how plug-in behavior was supposed to work by searching for the function calls. Yuck.
Okay, so my coding style is different than the WP coding styles. Even still, people should know to put spaces around operators (especially the ‘.’ concatenation operator). And why or why would anyone use variables like ‘doggs’ and ‘cats’ in their code?
Sigh… okay, ’nuff ranting from me.
I’ve uploaded your updated alpha of Adhesive to my WordPress hack page. Thanks!
You should check out PHPXref for figuring out PHP source code. You can find an Xref for a relatively recent copy of WordPress at my site, but I don’t promise to keep it up-to-date.
Does runPhp plug-in work on WP 2.1 ?
Thks for your help!