Skip to content

Commit

Permalink
Do not hook scripts on frontend now that they're added in widget
Browse files Browse the repository at this point in the history
See #39820 (comment)

Co-authored-by: kraftbj <[email protected]>
  • Loading branch information
jeherve and kraftbj committed Oct 18, 2024
1 parent 69b22de commit fac6440
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions projects/packages/search/src/widgets/class-search-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ public function __construct( $name = null ) {

if ( is_admin() ) {
add_action( 'sidebar_admin_setup', array( $this, 'widget_admin_setup' ) );
} else {
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_frontend_scripts' ) );
}

add_action( 'jetpack_search_render_filters_widget_title', array( 'Automattic\Jetpack\Search\Template_Tags', 'render_widget_title' ), 10, 3 );
Expand Down

0 comments on commit fac6440

Please sign in to comment.