[wp-testers] Re: wp-testers Digest, Vol 21, Issue 13

Ajay D'Souza ajaydsouza at gmail.com
Sat Nov 11 16:26:08 GMT 2006


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" <blogger at steffensenfamily.com>
> Subject: RE: [wp-testers] What is the hook when using post-new.php?
> To: <wp-testers at lists.automattic.com>
> Message-ID: <001b01c704fc$9e713f00$b708a8c0 at KIRKLAPTOP>
> 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


More information about the wp-testers mailing list