wp search-replace http://example.com https://example.com
- через WP-CLI.main-header__list{
dispaly: flex;
justify-content: space-between;
}
Object.entries(str.split('').reduce((acc, n) => (acc[n] = (acc[n] ?? 0) + 1, acc), {}))
[...[...str].reduce((acc, n) => acc.set(n, -~acc.get(n)), new Map)]
Object.values(str).sort().join('').match(/(.)\1*/g)?.map(n => [ n[0], n.length ]) ?? []
Array.from(new Set(str), n => [ n, str.split(n).length - 1 ])
Допустим у меня есть макет шириной 1440px
if ( substr($_SERVER['REQUEST_URI'], -1) != '/' ) {
header('Location: ' . $_SERVER['REQUEST_URI'] . '/', true, 301);
exit();
}