Thanks Kirk,

Can I have the full code?

I uderstood that the code you gave checks if it is any of the files, but how
do I insert the button?

I am using the Edit Button template.

Ajay

------------------------------

Message: 2
Date: Fri, 10 Nov 2006 22:15:17 +0300
From: "Kirk Steffensen" <[EMAIL PROTECTED]>
Subject: RE: [wp-testers] What is the hook when using post-new.php?
To: <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="windows-1250"

Ajay,

I still haven't traced this all the way out, but something changed in
admin_footer from WP 2.0 to 2.1.  2.1 broke our WPG2 plugin, too.

I've been able to get a WPG2 button on all posts and pages by explicitly
calling both post.php and post-new.php and both page.php and page-new.php
from within the function.

if(strpos($_SERVER['REQUEST_URI'], 'post.php') ||
strpos($_SERVER['REQUEST_URI'], 'post-new.php') ||
strpos($_SERVER['REQUEST_URI'], 'page.php') ||
strpos($_SERVER['REQUEST_URI'], 'page-new.php') ||
strpos($_SERVER['REQUEST_URI'], 'bookmarklet.php'))

Under 2.0, you didn't have to explicitly call each individual one, but it
looks like you do now.  Hope this helps.

Any developer care to comment on the rationale behind this?

(Anyone using Owen Winkler's Edit Button Template in a plugin needs to
take
a look at this to see if it affects them.)

Kirk
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to