Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#65404 closed enhancement (fixed)

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

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

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.


3 months 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
3 months ago

  • Milestone Awaiting Review7.1

#3 @dmsnell
3 months ago

  • Owner set to dmsnell
  • Resolutionfixed
  • Status newclosed

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.