diff --git src/wp-admin/includes/post.php src/wp-admin/includes/post.php
index c9b29b5df4..866e4a1e4d 100644
|
|
function get_sample_permalink( $id, $title = null, $name = null ) { |
1391 | 1391 | $original_status = $post->post_status; |
1392 | 1392 | $original_date = $post->post_date; |
1393 | 1393 | $original_name = $post->post_name; |
| 1394 | $original_filter = $post->filter; |
1394 | 1395 | |
1395 | 1396 | // Hack: get_permalink() would return plain permalink for drafts, so we will fake that our post is published. |
1396 | 1397 | if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ), true ) ) { |
… |
… |
function get_sample_permalink( $id, $title = null, $name = null ) { |
1435 | 1436 | $post->post_status = $original_status; |
1436 | 1437 | $post->post_date = $original_date; |
1437 | 1438 | $post->post_name = $original_name; |
1438 | | unset( $post->filter ); |
| 1439 | $post->filter = $original_filter; |
1439 | 1440 | |
1440 | 1441 | /** |
1441 | 1442 | * Filters the sample permalink. |