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

WordPress Trac noreply at wordpress.org
Tue May 16 05:24:10 UTC 2023


#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:
-------------------------------+-----------------------------

Comment (by audrasjb):

 In [changeset:"55758" 55758]:
 {{{
 #!CommitTicketReference repository="" revision="55758"
 Docs: Clarify `@param` types on `get_sample_permalink_html` filter.

 `$new_title` and `$new_slug` can be null if `get_sample_permalink_html()`
 was called with default parameters, and they are documented as
 `string|null` in the function DocBlock.

 Follow-up to [34347].

 Props Enchiridion, audrasjb, SergeyBiryukov.
 Fixes #58322.
 See #33927. --Cette ligne, et les
 suivantes
 ci-dessous, seront ignorées--

 M    trunk/src/wp-admin/includes/post.php
 }}}

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


More information about the wp-trac mailing list