Make WordPress Core

Ticket #33927: 33927.patch

File 33927.patch, 1.1 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-admin/includes/post.php

     
    13501350         * Filter the sample permalink HTML markup.
    13511351         *
    13521352         * @since 2.9.0
     1353         * @since 4.4.0 Added `$post` parameter.
    13531354         *
    1354          * @param string      $return    Sample permalink HTML markup.
    1355          * @param int|WP_Post $id        Post object or ID.
    1356          * @param string      $new_title New sample permalink title.
    1357          * @param string      $new_slug  New sample permalink slug.
     1355         * @param string  $return    Sample permalink HTML markup.
     1356         * @param int     $post_id   Post ID.
     1357         * @param string  $new_title New sample permalink title.
     1358         * @param string  $new_slug  New sample permalink slug.
     1359         * @param WP_Post $post      Post object.
    13581360         */
    1359         $return = apply_filters( 'get_sample_permalink_html', $return, $id, $new_title, $new_slug );
     1361        $return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );
    13601362
    13611363        return $return;
    13621364}