My Plugins With WordPress 2.6 Part 2

My good friend Ozh has written an article entitled, What Plugin Coders Must Know About WordPress 2.6. It is a good read if you are a plugin developer for WordPress.

Both of us have came to a conclusion that if you move your /wp-content/ folder to elsewhere, you may need to manually specify the path to wp-config.php in the respective plugins that make use of them as there is no 100% way of guessing the path to wp-config.php.

So my recommendation is DO NOT MOVE the /wp-content/ folder. It is OK to move wp-config.php to a level higher, but try not to touch /wp-content/.

With regards to my plugins, I will release a .01 update bringing the version to 1.31 and 2.31 for the respective plugins. This update will make sure that the plugin will work for BOTH WordPress 2.5 and WordPress 2.6. That is right, I will maintain backward compatibility with WordPress 2.5 for the next update as WordPress 2.6 is just a minor release.

When WordPress 2.7 comes out in November 2008, I will bump all the versions to 1.40 and 2.40 respectively and I will remove the backward compatibility feature to WordPress 2.5.

1 Star2 Stars3 Stars4 Stars5 Stars (41 votes, average: 3.61 out of 5)

Developing Plugins For WordPress

I spoke about Developing Plugins For WordPress on Wednesday, 18th June 2008 at the Singapore PHP User Group, June 2008 meetup.

This is the second time I am speaking at the user group. The first time was in December 2007 meetup where I spoke about the same topic WorPress Plugin Development With PHP.

I think this time my pace was slightly better.

By embedding this video, it breaks my site XHTML validation!

Powerpoint Slides and Source Code can be downloaded here.

1 Star2 Stars3 Stars4 Stars5 Stars (33 votes, average: 3.27 out of 5)

My Plugins With WordPress 2.6 Beta

I have downloaded WordPress 2.6 Beta 1 and installed it. Not much difference from WordPress 2.5 in terms of the layout.

Now on the extreme top menu on the extreme right, there is a link called “Speed up!” which links to Google Gears.

In the Dashboard, right under “Right Now”, there is a comment break down added to it. Here is an example: “You have 1 post, 1 page, contained within 1 category and 0 tags. Current comment break down: 1 total, 1 approved, 0 spam and 0 awaiting moderation.”

When you write a page or post, underneath the “Save” and “Published” button, there is a word count indicator.

The display of themes under “Available Themes” has also changed a little.

Now back to serious business.

I am still deciding whether or not to maintain WordPress 2.5 compatibility for the next wave of updates for my plugins as WordPress 2.6 introduces a lot of constants like “WP_PLUGIN_URL”, “WP_PLUGIN_DIR”
“WP_CONTENT_DIR”, “WP_CONTENT_URL”, etc.

2 potential issues that would break my plugin in WordPress 2.6 and I will be unable to fix it unless I find another way to do the AJAX, “Allow wp-config.php to exist one level up from WordPress root directory
and “Allow wp-content directory to exist in a custom location (not relative to ABSPATH)“.

Argh! WordPress 2.5 has the shortest development cycle!

1 Star2 Stars3 Stars4 Stars5 Stars (58 votes, average: 3.53 out of 5)

WordPress 2.6 Beta 1

Ryan has announced the availability of WordPress 2.6 Beta 1. The final release of WordPress 2.6 should happen between 7th July 2008 to 14th July 2008 according to WordPress Trac’s Roadmap.

WordPress 2.6 is not a big release compared to WordPress 2.5, but hopefully it will not break any plugins as I just updated my plugins for WordPress 2.5.

I still think that WordPress should slow down their pace of development if not it will be hard for plugin authors to keep up with it as everytime a major version of WordPress comes out, plugins always breaks.

Here are the features of WordPress 2.6:

  • Post Revisioning
  • A “Press This” bookmarklet for tumblelog style quick posting
  • Caching of static files with Gears for faster Admin page loads
  • A new and improved image editing dialog that offers lots of control over the images in your posts
  • Theme previewing as seen on WordPress.com
  • Built-in word counting in the post editor
  • The ability to disable remote publishing for the security conscious
  • XML-RPC API for changing blog options
  • Better SSL support for the Admin
  • Hierarchy-aware paging in the Manage Pages and Manage Categories admin pages.
  • The ability to relocate your content directory
  • The ability to move wp-config.php out of your web root
  • Drag-and-drop sortable galleries
  • Customizable default avatars
  • Bulk delete, activate, and deactivate for plugins
  • Check box range selection with shift-click
  • TinyMCE 3.1.0.1 with lots of bug fixes
  • jQuery 1.2.6 with some nice performance improvements
  • jQuery UI 1.5
  • Lots of bug fixes and performance improvements

Finally the feature of activating/deactivating plugins in bulk is here!

1 Star2 Stars3 Stars4 Stars5 Stars (29 votes, average: 2.86 out of 5)

WP-PostRatings 1.31 Beta 1

WP-PostRatings is my only plugin left which still uses an external Javascript file in .php instead of .js.

Finally, I have gotten rid of .php and now the only two Javascript files in WP-PostRatings are in .js and best of all, they are packed using Dean Edward’s Packer. This will not only reduce the size of the Javascript file but also lessen the load on the server as .js files can be served as static files which requires no overhead in processing.

Changelog:

NEW: Renamed postratings-admin-js.php To postratings-admin-js.js and Move The Dynamic Javascript Variables To The PHP Pages
NEW: Renamed postratings-js.php To postratings-js.js and Move The Dynamic Javascript Variables To The PHP Pages
NEW: Uses postratings-js-packed.js And postratings-admin-js-packed.js

I need you guys to help me test WP-PostRatings 1.31 to ensure that it is working like normal as before.

Upgrading from WP-PostRatings 1.30 to WP-PostRatings 1.31 Beta 1 is very easy, just overwrite all the files will do. You do not need to run anything.

Thank You

PS: I have upgraded this site to WP-PostRatings 1.31 Beta 1, if there is any bug in the rating systems do let me know.

1 Star2 Stars3 Stars4 Stars5 Stars (172 votes, average: 3.86 out of 5)