[wp-hackers] $pagenow in WP 3.0 ?
Frank Bueltge
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:
wp-admin/post.php?post=7&action=edit
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
>> me?
>> Thanks for your help.
>> Frank
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
> --
> http://scribu.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list