• Resolved Chris Thomas

    (@maverickchris)


    Hi, I’ve noticed a small issue with the plugin, the path to the SVG icon seems to be incorrectly formatted with a double slash and using back slashes instead of forward slashes.

    Here’s the current code:

    $this->icon = $plugin_dir . '\assets\iwp-logo-small.svg';

    This ends up with the url: /wp-content/plugins/iwocapay-payment-gateway/\assets\iwp-logo-small.svg, which the browser tries to correct to: /wp-content/plugins/iwocapay-payment-gateway//assets/iwp-logo-small.svg.

    Since plugin_dir_url adds a forward slash, the correct path for the icon should be:

    $this->icon = $plugin_dir . 'assets/iwp-logo-small.svg';

    Thanks,

    Chris

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect icon path’ is closed to new replies.