Skip to content

Commit

Permalink
Don't use get_block_asset_url, is only available since WordPress 6.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Mar 26, 2024
1 parent 9a35cda commit 0baddf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ public function get_pronamic_icon_url() {
}

if ( 'default' === $icon_display && \array_key_exists( 'icon_path', $this->gateway_args ) && '' !== $this->gateway_args['icon_path'] ) {
return \get_block_asset_url( \realpath( $this->gateway_args['icon_path'] ) );
$path = \realpath( $this->gateway_args['icon_path'] );

return \plugins_url( \basename( $path ), $path );
}

if ( 'none' === $icon_display ) {
Expand Down

0 comments on commit 0baddf4

Please sign in to comment.