Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サイトタイトルをBogoで翻訳できるように、lightning_get_print_headlogoを修正してほしい #1093

Closed
webplant opened this issue Nov 24, 2023 · 2 comments

Comments

@webplant
Copy link

webplant commented Nov 24, 2023

template-tags.phpで定義しているlightning_get_print_headlogo関数について。

 

/**
 * Head logo
 *
 * @return string image tag or site name text
 */
function lightning_get_print_headlogo() {
	$options = get_option( 'lightning_theme_options' );
	if ( ! empty( $options['head_logo'] ) ) {
		$head_logo = apply_filters( 'lightning_head_logo_image_url', $options['head_logo'] );
		if ( $head_logo ) {
			return '<img src="' . esc_url( $head_logo ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" />';
		}
	}
	return get_bloginfo( 'name' );
}

return get_bloginfo( 'name'); 
に第二引数に、'display' を追加して

return get_bloginfo( 'name' ,'display');

のように変更してほしいです。

get_bloginfoは、第2引数の'display'がないと、フィルターが効かいないです。

File: wp-includes/general-template.php を参照
https://developer.wordpress.org/reference/functions/get_bloginfo/

get_bloginfoにフィルターが効かないと、Bogoで翻訳したテキストを出力をできないので、よろしくお願いします。

@kurudrive
Copy link
Member

@webplant 対応版リリースいたしました。アップデートの上ご確認ください。

@webplant
Copy link
Author

@kurudrive 確認しました。ありがとうございます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants