Make WordPress Core


Ignore:
Timestamp:
05/16/2023 05:23:55 AM (16 months ago)
Author:
audrasjb
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r55703 r55758  
    15561556     * @since 4.4.0 Added `$post` parameter.
    15571557     *
    1558      * @param string  $return    Sample permalink HTML markup.
    1559      * @param int     $post_id   Post ID.
    1560      * @param string  $new_title New sample permalink title.
    1561      * @param string  $new_slug  New sample permalink slug.
    1562      * @param WP_Post $post      Post object.
     1558     * @param string      $return    Sample permalink HTML markup.
     1559     * @param int         $post_id   Post ID.
     1560     * @param string|null $new_title New sample permalink title.
     1561     * @param string|null $new_slug  New sample permalink slug.
     1562     * @param WP_Post     $post      Post object.
    15631563     */
    15641564    $return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );
Note: See TracChangeset for help on using the changeset viewer.