[wp-trac] [WordPress Trac] #18504: Allow filtering of "Add New [Post Type]" URL on edit.php

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 24 02:00:36 UTC 2011


#18504: Allow filtering of "Add New [Post Type]" URL on edit.php
----------------------------+------------------------------
 Reporter:  tbuteler        |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.2.1
 Severity:  trivial         |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by kawauso):

 `$post_new_file` is set around
 http://core.trac.wordpress.org/browser/trunk/wp-admin/edit.php#L38, so
 assuming we trust the post type slug is valid since it's in
 `get_post_types()`, the `esc_url()` instance is the incorrect one.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18504#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list