Skip to content

Commit

Permalink
Removed unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills authored Jul 20, 2023
1 parent 0dd2b9d commit bc8c01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __start () {
add_shortcode( self::get_tag(), [ $this, 'render_shortcode' ] );

add_action( 'wc_shipping_simulator_form_after', [ $this, 'display_results_wrapper' ] );
add_filter( 'script_loader_tag', [ $this, 'prepare_script_tag' ], 10, 3 );
add_filter( 'script_loader_tag', [ $this, 'prepare_script_tag' ], 10, 2 );
}

public function display_results_wrapper () {
Expand Down Expand Up @@ -77,7 +77,7 @@ public function render_shortcode ( $atts ) {
return '';
}

public function prepare_script_tag ( $tag, $handle, $src ) {
public function prepare_script_tag ( $tag, $handle ) {
if ( h::prefix( 'form' ) !== $handle) return $tag;

$atts = [];
Expand Down

0 comments on commit bc8c01b

Please sign in to comment.