Quick Fix ~ Live+Press for WordPress 2.2

I held off upgrading my WordPress install, not wanting to bother with potential problems with my theme and plugins. Just yesterday, I finally got around to upgrading my WordPress install from 2.0.2 to 2.1.3 only to find 2.2 was released 6 minutes after I had finished with the upgrade =/ It didn’t make much sense not to upgrade to the latest version so a few key strokes in putty, a click or two in Firefox I had 2.2 up and running. I began activating my plugins one by one, checking for compatibility issues. Of course Live+Press failed - the Live+Press form did not show on the ‘write post’ screen, even though the plugin was active. A quick look through the LP files and the fix was evident ~ ‘post.php was referenced, but not ‘post-new.php’.

The necessary changes are minor ~ you will need to reference ‘post-new.php’ in addition to ‘post.php’. Only two files will need to be edited: lpsynch.php & lpextras.php. The edit is the same for both files.

Find this line:

if (strpos($_SERVER['PHP_SELF'],'wp-admin/post.php') || strpos($_SERVER['PHP_SELF'],'wp-admin/bookmarklet.php')){

and add the following bit just after the first parenthesis:

strpos($_SERVER['PHP_SELF'],'wp-admin/post-new.php') ||

Simple as that :)

I don’t know this for certain, but I do not believe Unteins is supporting the plugin any longer. I have been unable to access the plugin page on his site for quite some time. I have no intention of ‘owning’ his plugin, I simply need a working version for my own blog. I don’t mind helping out and sharing the ‘fixes’ I’ve made to his plugin ~ I’ve received my own share of help with other plugins I use ;-)

[edit] Alternatively, if you don’t want to manually edit the LP files, you can just download the edited plugin here: ::Live+Press1.99.9::. I cleaned up the ‘options’ page - made it less ‘ugly’. I bumped the plugin version to ‘1.99.9′ ~ not due to any significant change in code, just to differentiate the updated version from 1.99. That, and I’m very tired right now ;-p

If you need help with the install, or something isn’t working right, you will more than likely find the answer in ::this post::.

BTW ~ After upgrading to WP 2.2 Brian “ColdForged” Dupuis’ Spelling Checker plugin wasn’t working properly on the ‘write post’ screen, either (though it did work on the ‘write page’ screen). A ‘fix’ similar to the one above worked to make the plugin WP 2.2 compatible.

Current Mood: (sleepy) sleepy
Current Music: Futurama/Family Guy

No Responses to “Quick Fix ~ Live+Press for WordPress 2.2”

»

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.