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);