开发者 |
SergeyBiryukov
mihdan karevn webvitaly kaggdesign |
---|---|
更新时间 | 2021年7月28日 00:02 |
PHP版本: | 5.6.20 及以上 |
WordPress版本: | 5.8 |
cyr2lat
folder to the /wp-content/plugins/
directory.Add this code to your theme's functions.php
file:
`
/**
For instance, if your non-standard locale is uk_UA, you can redefine it to uk
by adding the following code to your theme's function.php
file:
`
/**
Add similar code to your theme's functions.php
file:
`
/**
Add similar code to your theme's functions.php
file:
`
/**
Add similar code to your theme's functions.php
file:
`
/**
Use the following command in the console:
wp cyr2lat regenerate [--post_type=<post_type>] [--post_status=<post_status>]
Where
-post_type
is list of post types,
-post_status
is list of post statuses.
Regeneration of thumbnails with the command wp media regenerate
can break links in old posts as file names become transliterated.
To avoid it, deactivate cyr2lat plugin during regeneration:
wp media regenerate --skip-plugins=cyr2lat
ctl_pre_sanitize_filename
Ё
, ё
, Й
, й
characters in file names on some Mac computers (old known problem on Mac's)_wp_old_slug
redirect.urldecode
in posts.ctl_pre_sanitize_title