Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Pawel2014

    (@pawel2014)

    Sorry about that. Just found the place for sharing my disappointment. You are right I should send a ticket.

    Pawel

    Thread Starter Pawel2014

    (@pawel2014)

    Closing thread.

    Thread Starter Pawel2014

    (@pawel2014)

    I got it!

    Your last reply led me to the solution: don’t trust your tools ??

    I was doing code verification with Inspection tool under Opera and Chrome, before. I like using them since they show code well structured. After your reply I did another check by displaying the source code of my page and it appeared that everything was correct.

    Next I did the code inspection with the code Inspector under Firefox. And the Firefox tool showed the code without quotation marks.

    So, this is not WP issue, but tools used for inspection. And the alert was raised unnecessarily. From the other hand the conclusion is surprising ??

    Thread Starter Pawel2014

    (@pawel2014)

    Hi,

    The function call in my functions.php was correct. The extra space I entered unintentionally while posting – simply that wasn’t simple copy/paste.

    Anyway, I’ve done dozens of tests. First, turned off and turned on plugins, changed themes and finally set up clean install of WP locally on XAMPP. The effect: still got the tag inside <noscript> wrapped.

    Then started to do experiments with the content of <img> tag and caught the problem: wrapping the contents of <noscript> depends on text length!

    When I reduced the length of <img> content down to 71 characters (excluding starting and ending space) quotation marks disappeared.

    The following tag (it is incorrect) is being printed without wrapping quotation marks:
    echo '<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.faceb /></noscript>';
    And this one contains them:
    echo '<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebo /></noscript>';

Viewing 4 replies - 1 through 4 (of 4 total)