• Hello,

    I’m using your theme momoyo for my cooking blog
    I added multi-lingual plugin (english, russian, french)

    For some posts in russian, I’m getting a printf warning as below

    Warning: printf(): Too few arguments in /homepages/33/d716299068/htdocs/clickandbuilds/MyCafeGourmand/wp-content/themes/momoyo/inc/template-tags.php on line 55

    Could you help by either provide a workaround or a fix for it?

    Thanks,

    MyCafeGourmand.com webmaster

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Benachi

    (@utz119)

    Hi njdebellevue

    Sorry to hear you’re having an issue. The newer version has been released today to correct the issue.

    If you prefer, you can replace the code below in inc/template-tags.php via Appearance < Editor.

    Replace

    /* translators: used between list items */
    			$tags_list = get_the_tag_list( '', esc_html_x( ' ', 'list item separator', 'momoyo' ) );
    			if ( $tags_list ) {
    				/* translators: 1: list of tags. */
    				printf( '<span class="tags-links">' . $tags_list  . '</span>'); // WPCS: XSS OK.
    			}

    With

    /* translators: used between list items, there is a space after the comma */
    			$tags_list = get_the_tag_list( '', esc_html_x( ' ', 'list item separator', 'momoyo' ) );
    			if ( $tags_list ) {
    				/* translators: 1: list of tags. */
    				printf( '<span class="tags-links">' . esc_html__( ' %1$s', 'momoyo' ) . '</span>', $tags_list ); // WPCS: XSS OK.
    			}

    Thank you for choosing my theme!

    Thread Starter njdebellevue

    (@njdebellevue)

    Hello Benachi,

    I just updated with latest theme version (1.0.7) and it looks good!

    Thanks for your help.

    MyCafeGourmand.com webmaster

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning message with momoyo theme’ is closed to new replies.