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

WordPress Trac noreply at wordpress.org
Sun Sep 20 03:25:47 UTC 2015


#33927: Pass post object to get_sample_permalink_html filter explicitly
-------------------------------+-----------------------------
 Reporter:  SergeyBiryukov     |       Owner:  wonderboymusic
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34347"]:
 {{{
 #!CommitTicketReference repository="" revision="34347"
 The `'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].

 Props SergeyBiryukov.
 Fixes #33927.
 }}}

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


More information about the wp-trac mailing list