diff --git a/class-post-public.php b/class-post-public.php
index a22b559..c349db4 100644
a
|
b
|
class Babble_Post_Public extends Babble_Plugin { |
111 | 111 | $this->add_filter( 'post_link', 'post_type_link', null, 3 ); |
112 | 112 | $this->add_filter( 'post_type_archive_link', null, null, 2 ); |
113 | 113 | $this->add_filter( 'post_type_link', null, null, 3 ); |
| 114 | $this->add_filter( 'get_sample_permalink', null, null, 5 ); |
114 | 115 | $this->add_filter( 'single_template' ); |
115 | 116 | $this->add_filter( 'the_posts', null, null, 2 ); |
116 | 117 | |
… |
… |
class Babble_Post_Public extends Babble_Plugin { |
773 | 774 | return user_trailingslashit( $post_link ); |
774 | 775 | } |
775 | 776 | |
| 777 | function get_sample_permalink( $permalink, $title, $name, $id, $post ) { |
| 778 | $permalink[ 0 ] = $this->post_type_link( $permalink[ 0 ], $post, $leavename ); |
| 779 | return $permalink; |
| 780 | } |
| 781 | |
776 | 782 | /** |
777 | 783 | * Hooks the WP page_link filter to ensure correct virtual language directory prefix, etc. |
778 | 784 | * |