Skip to content

Commit a3a176a

Browse files
refactor(Icon): drop redundant unregister API existence check
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent dd07254 commit a3a176a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎inc/Services/Icon.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ public function boot( Service_Container $container ): void {
2828
}
2929

3030
add_action( 'init', [ $this, 'register_icon_collections' ] );
31-
32-
if ( function_exists( 'wp_unregister_icon_collection' ) ) {
33-
add_action( 'init', [ $this, 'unregister_core_icon_collection' ], 20 );
34-
}
31+
add_action( 'init', [ $this, 'unregister_core_icon_collection' ], 20 );
3532
}
3633

3734
/**

0 commit comments

Comments
 (0)