[wp-hackers] custom post type post editor add_actionscript targetting

Andrew Nacin wp at andrewnacin.com
Tue Nov 9 01:11:16 UTC 2010


On Mon, Nov 8, 2010 at 12:10 PM, scribu <mail at scribu.net> wrote:

> On Mon, Nov 8, 2010 at 6:49 PM, Philip M. Hofer (Frumph)
> <philip at frumph.net>wrote:
>
> > $typenow isnt populated on the post.php page, was a great thought though,
> > it is however populated on post-new.php and edit.php
> >
> > See if I wanted to add specific scripts to the post.php and post-new.php
> > pages in an meta box on those pages there isnt (so far) a clear way of
> doing
> > that, some vars are being populated on one, but not the other while
> > targetting a custom post type.
> >
>
> Probably worth a ticket on trac.


Indeed, current_screen needs some tweaking. I've been piling my gripes onto
http://core.trac.wordpress.org/ticket/14886.


More information about the wp-hackers mailing list