Make WordPress Core

Opened 2 days ago

Closed 2 days ago

#65404 closed enhancement (fixed)

Docs: Update parameter types to allow null for interactivity api functions

Reported by: soean's profile Soean Owned by: dmsnell's profile dmsnell
Milestone: 7.1 Priority: normal
Severity: normal Version:
Component: Interactivity API Keywords: has-patch
Focuses: docs Cc:

Description

In r58327 the null type was added to some interactivity API function parameters. We also need to update the docs.

Change History (3)

This ticket was mentioned in PR #11470 on WordPress/wordpress-develop by @Soean.


2 days ago
#1

In 58327 the null type was added to some interactivity API function parameters. We also need to update the docs.

Trac ticket: https://core.trac.wordpress.org/ticket/65404

#2 @peterwilsoncc
2 days ago

  • Milestone changed from Awaiting Review to 7.1

#3 @dmsnell
2 days ago

  • Owner set to dmsnell
  • Resolution set to fixed
  • Status changed from new to closed

In 62458:

Docs: Update parameter types to allow null for interactivity api functions

When [58327] added annotations for a nullable-typed argument in the Interactivity API, the PHPDoc comment wasn’t also updated. This patch adds the corresponding documentation update.

Prepared ahead of WCEU 2026, merged as part of Contributor Day.

Developed in: https://github.com/WordPress/wordpress-develop/pull/11470
Discussed in: https://core.trac.wordpress.org/ticket/65404

Follow-up to [58327].

Props audrasjb, mukesh27, soean.
Fixes #65404.

Note: See TracTickets for help on using tickets.