Make WordPress Core

Ticket #54736: get_sample_permalink_post_filter_null.patch

File get_sample_permalink_post_filter_null.patch, 486 bytes (added by herregroen, 2 years ago)
  • src/wp-admin/includes/post.php

    diff --git src/wp-admin/includes/post.php src/wp-admin/includes/post.php
    index c9b29b5df4..ed9456a51b 100644
    function get_sample_permalink( $id, $title = null, $name = null ) { 
    14351435        $post->post_status = $original_status;
    14361436        $post->post_date   = $original_date;
    14371437        $post->post_name   = $original_name;
    1438         unset( $post->filter );
     1438        $post->filter      = null;
    14391439
    14401440        /**
    14411441         * Filters the sample permalink.