Support » Plugin: WooCommerce SagePay Direct Payment Gateway » Small bug with wpautop function in this plugin

  • Resolved kyleduncan



    Thanks for the great extension! I have noticed a tiny bug in this plugin, in the file “ds-sagepay-direct.php on line 692, it reads:

    if ($this->description) echo wpautop(wptexturize($this->description));

    “echo” shouldnt be used here, as the function outputs the data automatically. using echo results in this appearing twice on the Thank You page once the order is complete.

    Could you remove “echo” so that it just appears once?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author swicks


    What version of the plugin are you using? The reason the Thank you was appearing twice was related to the gateway class instance being called twice.

    This should have been fixed in

    wpautop just returns a string and you would need to ‘echo’ this.

    Best regards


    Thanks – I just noticed the upgrade today, so will test it out.

    Sorry ,i misunderstood the docs here: and from the Usage section assumed that echo wasn’t needed, as with a few other wordpress functions.

    thanks again!

    Plugin Author swicks


    Great & no problem.



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Small bug with wpautop function in this plugin’ is closed to new replies.