url translit to future

This commit is contained in:
arlemp@selectel.ru
2021-11-05 17:40:54 +03:00
parent 83c4ba5b17
commit 8a81ddedba

View File

@@ -108,10 +108,10 @@ function lat_slug( $post_id ){
if ($post_id < 15789)
return; // залитое старье не трогаем
// только публикованные
if ( wp_is_post_revision( $post_id ) || get_post($post_id)->post_status != 'publish' )
// только публикованные || get_post($post_id)->post_status != 'publish'
if ( wp_is_post_revision( $post_id ))
return;
$post = get_posts($post_id);
$name = urldecode($post[0]->post_name);