WordPress.org

Forums

Garee's Random Image
[resolved] \n Displayed in Dashboard (5 posts)

  1. sgwatwp
    Member
    Posted 2 years ago #

    When this plugin is activated a '\n' appears directly above the Dashboard link. I tracked this down to this section in garees_random_image.php

    // load flattr js
    if(!defined('GAREE_FLATTRSCRIPT_IS_LOADED')) {
      echo '<script type="text/javascript" src="' . GAREE_FLATTRSCRIPT . '"></script>\n';
      define('GAREE_FLATTRSCRIPT_IS_LOADED', true);
    }

    The \n is being printed to the screen. I believe \n should be removed or the end of that string should be changed to

    </script>' . "\n";

    http://wordpress.org/extend/plugins/garees-random-image/

  2. loosefast
    Member
    Posted 2 years ago #

    Thanks! This works.

  3. sgwatwp
    Member
    Posted 2 years ago #

    Cool. Glad this helped someone.

  4. Daniel
    Member
    Posted 1 year ago #

    Thanks!

  5. stijnbiemans
    Member
    Posted 1 year ago #

    Thanks a lot! Would be great if this was editted in the plugin itself (so a small update could help everybody instead of only the ones that bother to edit the php file)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic