[wp-trac] [WordPress Trac] #33927: Pass post object to get_sample_permalink_html filter explicitly

WordPress Trac noreply at wordpress.org
Fri Sep 18 21:40:30 UTC 2015


#33927: Pass post object to get_sample_permalink_html filter explicitly
-------------------------------+------------------------------
 Reporter:  SergeyBiryukov     |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  4.4
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:  has-patch commit
  Focuses:                     |
-------------------------------+------------------------------
 [source:tags/4.3.1/src/wp-admin/includes/post.php#L1335
 get_sample_permalink_html filter]'s second parameter can be a post ID or a
 post object.

 This is confusing. We should pass the post ID and post object separately,
 for consistency with `get_sample_permalink` filter added in [34309].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33927>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list