Title: Small bug with wpautop function in this plugin
Last modified: August 21, 2016

---

# Small bug with wpautop function in this plugin

 *  Resolved [Kyle Duncan](https://wordpress.org/support/users/kyleduncan/)
 * (@kyleduncan)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/small-bug-with-wpautop-function-in-this-plugin/)
 * Hi,
 * 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?
 * Thanks!
 * [http://wordpress.org/extend/plugins/sagepay-direct-for-woocommerce-payment-gateway/](http://wordpress.org/extend/plugins/sagepay-direct-for-woocommerce-payment-gateway/)

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

 *  Plugin Author [swicks](https://wordpress.org/support/users/swicks/)
 * (@swicks)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/small-bug-with-wpautop-function-in-this-plugin/#post-3774578)
 * Hi,
    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 0.1.6.3
 * wpautop just returns a string and you would need to ‘echo’ this.
 * Best regards
 * Steve
 *  Thread Starter [Kyle Duncan](https://wordpress.org/support/users/kyleduncan/)
 * (@kyleduncan)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/small-bug-with-wpautop-function-in-this-plugin/#post-3774608)
 * Thanks – I just noticed the upgrade today, so will test it out.
 * Sorry ,i misunderstood the docs here: [http://codex.wordpress.org/Function_Reference/wpautop](http://codex.wordpress.org/Function_Reference/wpautop)
   and from the Usage section assumed that echo wasn’t needed, as with a few other
   wordpress functions.
 * thanks again!
 *  Plugin Author [swicks](https://wordpress.org/support/users/swicks/)
 * (@swicks)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/small-bug-with-wpautop-function-in-this-plugin/#post-3774611)
 * Great & no problem.
 * Regards
 * Steve

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

The topic ‘Small bug with wpautop function in this plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sagepay-direct-for-woocommerce-payment-
   gateway_8284e5.svg)
 * [WooCommerce SagePay Direct Payment Gateway](https://wordpress.org/plugins/sagepay-direct-for-woocommerce-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sagepay-direct-for-woocommerce-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sagepay-direct-for-woocommerce-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/sagepay-direct-for-woocommerce-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sagepay-direct-for-woocommerce-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sagepay-direct-for-woocommerce-payment-gateway/reviews/)

## Tags

 * [wpautop](https://wordpress.org/support/topic-tag/wpautop/)

 * 3 replies
 * 2 participants
 * Last reply from: [swicks](https://wordpress.org/support/users/swicks/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/small-bug-with-wpautop-function-in-this-plugin/#post-3774611)
 * Status: resolved