Global 2026-07-20 functions.php
This commit is contained in:
parent
f12b4daf00
commit
aca5243154
@ -9,6 +9,9 @@ require_once get_template_directory() . '/inc/class-pksh-data.php';
|
||||
* blogname (Внешний вид → Настроить → Свойства сайта) берётся из branch_name.
|
||||
*/
|
||||
add_filter( 'pre_option_blogname', function( $default ) {
|
||||
if ( is_admin() ) {
|
||||
return $default;
|
||||
}
|
||||
$branch = get_option( 'branch_name' );
|
||||
if ( ! empty( $branch ) ) {
|
||||
return $branch;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user