Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    There was a ticket for this on github. Has that been patched yet?

    Thread Starter chenryahts

    (@chenryahts)

    It’s here:

    https://github.com/Otto42/theme-check/issues/73

    Does this mean it is not my issue? And, would a single <title> in a PHP comment cause this error as well?

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    So, does that patch not fix your problem?

    Thread Starter chenryahts

    (@chenryahts)

    The patch is already included in the version of Theme Check I am using.

    Would a single <title> in a PHP comment cause this error as well?

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Probably, because we don’t strip comments for all the checks.

    Thread Starter chenryahts

    (@chenryahts)

    Okay. I’m still getting the error, and I have one last idea on why. Would this code cause it somehow?

    if ( ! function_exists( 'myahts_render_title' ) ) {
    			function myahts_render_title() {
    		?>
    		<title><?php wp_title( '-', true, 'right' ); ?></title>
    		<?php
    			}
    			add_action( 'wp_head', 'myahts_render_title' );
    		}

    Thank you for your help!

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Yes, that code would cause it, because it’s adding the title tag to the head in a not-allowed way.

    Thread Starter chenryahts

    (@chenryahts)

    Okay, it was some inherited code. Thanks for helping me track down the problem.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘SVG Title Problem’ is closed to new replies.