WordPress.org

Support

Support » Plugins and Hacks » WooCommerce SagePay Direct Payment Gateway » [Resolved] Small bug with wpautop function in this plugin

[Resolved] 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/

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

    @swicks

    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

    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 and from the Usage section assumed that echo wasn’t needed, as with a few other wordpress functions.

    thanks again!

    Plugin Author swicks

    @swicks

    Great & no problem.

    Regards

    Steve

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