WordPress Random Post Box plugin updated

The WordPress Random Post Box plugin is updated to work in WordPress 3.0. You can download the new version 1.0.3 from the plugin directory.

The problem and solution
It was a simple fix but hard to find. As mentioned by Fabian Anderwald (thanks Fabian) files not loaded within wordpress framework now needs to include the file wp-load.php instead of wp-blog-header.php, a change in WordPress that might be a problem for all integrating WordPress in other applications. This also affected my ajax-call in Random Post Box plugin. So, if you are a developer and run in to the same proble change this:

1
require('./wp-blog-header.php');

To this:

1
require('./wp-load.php');

There was also a warning generated from an array, a bug which also had an easy fix.

The original post about the plugin »

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • Live
  • Technorati
  • Twitter

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">