해결 방법 좀 알려주세요 ㅠ.ㅠ
오류메시지
Warning: printf(): Too few arguments in /home/arkmo/html/wp-content/plugins/woocommerce/includes/admin/views/html-notice-template-check.php on line 15
html-notice-template-check.php의 15라인 입니다.
<p><?php printf( __( '<strong>Your theme (%1$s) contains outdated copies of some WooCommerce template files.</strong> These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the <a href="%2$s">system status page</a>. If in doubt, check with the author of the theme.', 'woocommerce' ), esc_html( $theme['Name'] ), esc_url( admin_url( 'admin.php?page=wc-status' ) ) ); ?></p>
전체내용
<?php
/**
* Admin View: Notice - Template Check
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$theme = wp_get_theme();
?>
<div id="message" class="updated woocommerce-message">
<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'template_files' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Dismiss', 'woocommerce' ); ?></a>
<p><?php printf( __( '<strong>Your theme (%1$s) contains outdated copies of some WooCommerce template files.</strong> These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the <a href="%2$s">system status page</a>. If in doubt, check with the author of the theme.', 'woocommerce' ), esc_html( $theme['Name'] ), esc_url( admin_url( 'admin.php?page=wc-status' ) ) ); ?></p>
<p class="submit"><a class="button-primary" href="https://docs.woocommerce.com/document/template-structure/" target="_blank"><?php _e( 'Learn more about templates', 'woocommerce' ); ?></a></p>
</div>
안녕하세요~^^
올려주신 코드상에 문제는 없어 보입니다.
다만 의심되는 건 번역된 메시지에 문제가 있을 듯합니다.
번역을 제거하고 아래처럼 영문으로 출력되게 해보시겠어요?
<p><?php printf( '<strong>Your theme (%1$s) contains outdated copies of some WooCommerce template files.</strong> These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the <a href="%2$s">system status page</a>. If in doubt, check with the author of the theme.', esc_html( $theme['Name'] ), esc_url( admin_url( 'admin.php?page=wc-status' ) ) ); ?></p>
원하시면 한글로 직접 단어를 수정해주셔도 됩니다.
고맙습니다.