Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/fix-drop-type-hint-from-wp-callback.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
significance: patch
type: fix
entry: Type-hint in WP Core's callback was too strict and could cause fatal.
timestamp: 2026-05-21T15:02:34.497Z
3 changes: 2 additions & 1 deletion src/Harbor/Admin/Feature_Manager_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ public function maybe_register_page(): void {
* the React bundle is loaded only on this specific admin page.
*
* @since 1.0.0
* @since TBD Dropped string type-hint for $hook_suffix.
*
* @param string $hook_suffix Current admin page hook suffix.
*
* @return void
*/
public function maybe_enqueue_assets( string $hook_suffix ): void {
public function maybe_enqueue_assets( $hook_suffix ): void {
if ( $hook_suffix !== $this->page_hook ) {
return;
}
Expand Down
Loading