url translit to future
This commit is contained in:
@@ -108,8 +108,8 @@ function lat_slug( $post_id ){
|
|||||||
if ($post_id < 15789)
|
if ($post_id < 15789)
|
||||||
return; // залитое старье не трогаем
|
return; // залитое старье не трогаем
|
||||||
|
|
||||||
// только публикованные
|
// только публикованные || get_post($post_id)->post_status != 'publish'
|
||||||
if ( wp_is_post_revision( $post_id ) || get_post($post_id)->post_status != 'publish' )
|
if ( wp_is_post_revision( $post_id ))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$post = get_posts($post_id);
|
$post = get_posts($post_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user