[wp-hackers] $pagenow in WP 3.0 ?

scribu scribu at gmail.com
Mon Feb 1 16:40:13 UTC 2010


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


More information about the wp-hackers mailing list