Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] How to remove dangerous inserted 'yoast' message in page

  • Resolved Bike

    (@bike)


    It seems like a nice plugin, but I don’t want “<!– This site is optimized with the Yoast WordPress SEO plugin v1.0.3 – http;//yoast.com/wordpress/seo/ –>” in the source code of every page!

    I see no option to turn it off, so this is blatant spam. Worse, it is potentially very dangerous: if a security hole is found, then it is too easy to find sites that use a specific version of the plugin, so they can be exploited.

    So will this be removed, made an option or does anybody know where (through which file) this gets injected?

    Cheers

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 15 replies - 1 through 15 (of 28 total)
  • Those lines can be found in /frontend/class-frontend.php

    Line 225, 262 and 601. You can remove those “echo”. However…the plugin is free, that’s a way to thank to the developer. If you really want to remove it, at least make a donation to the developer.

    And don’t forget, each update re-add those lines.

    Best regards.

    It would be great if developers of the plugin made it easy to remove it and promoting clients from donating: Donate and remove these comments automatically.

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    They’re there not even for promotion that much as for debugging. Feel free to take them out but I’ll never offer a way to take them out via the backend, sorry.

    Hello Joost, could you please explain why you do not want to add option to remove these comments? This is indeed security threat. Thanks.

    I use W3 Total Cache plugin for all of my projects. Among other benefits, the plugin offers an option to minify HTML, which will remove all comments from your markup. Check it out!

    http://wordpress.org/extend/plugins/w3-total-cache/

    W3 Total Cache is crappy. High CPU consuming and too much confusing options. And I’m not sure if will remove the echos or only the comments from the CSS and JS. I find myself WP Super Cache + WP Minify + DB Cache Reloaded more attractive, efficient and are not killing my server.
    Plus…I compared W3TC with this second alternative, with the same settings, and I got each time better load time with SuperCache and WP Minify. I tested it with websites like gtmetrix, pingdom and webpagetest. Not just one test, but tens of tests.

    They’re there not even for promotion that much as for debugging. Feel free to take them out but I’ll never offer a way to take them out via the backend, sorry.

    You are the developer so of course, you have the final word. But that doesn’t make sense at all. If all plugins worked like that, we would all have a crowded head full of useful debugging comments.

    I can’t see those comments at your site’s head, so I guess you understand why we’d prefer to disable them.

    Do this:

    in the plugin look in /frontend/class-frontend.php

    Line 228:

    function promo() {
    		echo "\n<!-- This site is optimized with the Yoast WordPress SEO plugin v".WPSEO_VERSION." - http://yoast.com/wordpress/seo/ -->\n";
    	}

    change that to

    function promo() {
    		echo " ";
    	}

    That will remove what you want.

    Mark, that’s what I said 7 posts above. Also there are more lines like that which need to be edited, not just that one.

    demlasjr – apologies for the duplication.

    No problem, just don’t forget to include all the lines in your tutorial 🙂

    wow, that explanation from Joost reminds me of a movie i saw lately; “As lame As it Gets” 😉

    I agree its a good plugin, very useful, and I use it, but that doesn’t mean I have to put up with providing him a free backlink just like that. Its not like his is the best wordpress plugin in the world… And if it were, Joost, you are more than welcome to charge for it… But don’t come in here with all this attitude saying you will NEVER provide an option to remove it. Here’s some news for you- NOBODY CARES! we’ll simply edit that link out…

    Anyone using this plugin, please get it removed using the process mentioned above, you are simply throwing away your Link PR juice by keeping that line in there….

    oh, and by the way, in the latest version of the plugin, there is no “function promo()”.. just search for something like a “function debug” and delete the url (or, make a search for all text line containing a “.com” and delete those)… in fact, you can delete the entire line including the “echo”…

    Plugin Contributor Joost de Valk

    (@joostdevalk)

    Dude, you should seriously relax. Most plugins add a debug line like that, that’s what it is. It’s not a link, Google will not follow it. Otherwise my PR would be way higher than it is 🙂

    The function is named differently now, you’re welcome to edit it out, but it’ll keep coming back every release.

    I agree with @brrainstormerr, the debug excuse is pretty lame.

    The only way I’ve found to hide those comments without having to manually edit a file everytime I update is using W3 Total Cache and compressing the HTML output. This seems to hide every “debug line” added by these kind of plugins.

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] How to remove dangerous inserted 'yoast' message in page’ is closed to new replies.