Make WordPress Core

Ticket #22338: 22338.4.diff

File 22338.4.diff, 724 bytes (added by SergeyBiryukov, 10 years ago)
  • src/wp-admin/includes/post.php

     
    12551255        $post->post_name = $original_name;
    12561256        unset($post->filter);
    12571257
    1258         return $permalink;
     1258        /**
     1259         * Filter the sample permalink.
     1260         *
     1261         * @since 4.4.0
     1262         *
     1263         * @param string  $permalink Sample permalink.
     1264         * @param int     $post_id   Post ID.
     1265         * @param string  $title     Post title.
     1266         * @param string  $name      Post name (slug).
     1267         * @param WP_Post $post      Post object.
     1268         */
     1269        return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );
    12591270}
    12601271
    12611272/**