Global 2026-07-20 functions.php

This commit is contained in:
Dekart Deploy Bot 2026-07-20 07:01:30 +00:00
parent f12b4daf00
commit aca5243154

View File

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