url translit to future
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user