WP-APP Update #2

I have been receiving a few bug reports for WP-APP and I have not only fixed those but have made a lot more progress implementing the rest of the protocol. Besides we shall soon see another draft (-10) of the Atom Publishing Protocol.

I have been learning more than I ever thought I would about WordPress, but since I use it on my website, I might as well know its source. I am starting to take some notes and hopefully someday share what I have learned in PHP so far, although I should be learning more powerful languages instead. Anyways, I often find myself wondering if WordPress has function to do X and if not that I will have to implement, but so far it has been great. My main lesson so far when implementing APP in WordPress is to look in xmlrpc.php first before thinking I have to write my own function to do X.

Many have pointed out how unRESTful it is to use cookies for authentication but I think RESTafarians are too religious in my opinion. They hear the word cookie and they call out heresy!. In my very own limited experience I have found out that WordPress is stateless. The cookies are simply the username and password hashed for purposes of authentication. Matt Mullenweg has impressed in me how important is to write PHP in a way that will work in a wide variety of hosting environments (but this is a painful as making HTML work across browsers). And as I pointed out to the APP WG, you don’t have access to the Authorization header in PHP when running in cgi mode. Anyways, I have listened to the RESTs and have figured out how run WordPress as a PHP module in Apache on my Dreamhost server and now it supports Basic authentication, sorry no TLS. If you care, you can point the APE at my WordPress Atom endpoint and see some useful messages on the APP dialogue between the APE and WP-APP.

Besides running PHP as a module and some tidying of the code, I have begun implementing media support. The most rewarding aspect of it so far, is that WordPress db model is incredible well designed and flexible that I have not had a need to make any changes to it yet (and I come from a very flexible data model “imaginary” world: RDF). Anyways, if you run the APE, you’ll notice some messages regarding sucessful posting of images, etc. It’s not all super complete, but neither is the APE. Anways, I must start working on some of the latest accepted paces in the APP wiki.

Last, but not least, I now support draft entries, but not with the pub:control element, instead I’m already using the app:control element. This was one of the trickies part so far in my work with WordPress, due to the security and hacking the queries (thanks God for filters in WP) to get what I wanted. And since I haven’t heard from Matt on wp-plugins.org, I have created my own SVN repository for WP-APP.

Enjoy and keep the bugs coming in and easy on my disk space please :x

UPDATE: In case you are wondering, I have been working too much on this that I have not had a chance to name my youngest child (Baby 3.0).

  • co.mments
  • connotea
  • del.icio.us
  • digg
  • Ma.gnolia
  • Reddit
  • scuttle
  • Technorati
  • YahooMyWeb

About this entry