From 8a81ddedbaf9570bea1032ca9d6c4a29a90f38dd Mon Sep 17 00:00:00 2001 From: "arlemp@selectel.ru" Date: Fri, 5 Nov 2021 17:40:54 +0300 Subject: [PATCH] url translit to future --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 671a2c5..5a78cd3 100644 --- a/functions.php +++ b/functions.php @@ -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);