[wp-hackers] $pagenow in WP 3.0 ?
frank at bueltge.de
Mon Feb 1 17:35:43 UTC 2010
Yes, for a new page is this correctly, but for edit an existing page:
On Mon, Feb 1, 2010 at 5:40 PM, scribu <scribu at gmail.com> wrote:
> That's because there is no page.php anymore.
> Instead, it's post.php?post_type=page
> Same for page-new.php
> On 2/1/10, Frank Bueltge <frank at bueltge.de> wrote:
>> Hello guys,
>> before i use the var $pagenow for ask who i am in backend and add
>> additional features only on this site.
>> Now on WP 3.0-alpha has the var not all sites: example: before use
>> edit page the $pagenow: age.php or page-new.php and now is this also
>> on post.php
>> My example:
>> $page_pages = array('page-new.php', 'page.php');
>> if ( in_array( $pagenow, $page_pages ) )
>> I will add features to admin_head hook and mybe you have a new workflow for
>> Thanks for your help.
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers