[wp-trac] [WordPress Trac] #20419: get_sample_permalink() passes the wrong post_status to wp_unique_post_slug()

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 20 05:11:11 UTC 2012


#20419: get_sample_permalink() passes the wrong post_status to
wp_unique_post_slug()
--------------------------+------------------
 Reporter:  mintindeed    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Permalinks    |     Version:  3.3
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 wp_unique_post_slug() takes a $post_ID, but what if we turned that into a
 $post object? Then we could pass in the object we already have, which will
 have filter->sample.

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


More information about the wp-trac mailing list