Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#63398 closed defect (bug) (fixed)

Incorrect filter in "wp_get_inline_script_tag()" / "wp_print_inline_script_tag()" phpdoc

Reported by: petitphp's profile petitphp Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.9 Priority: normal
Severity: minor Version: 5.7
Component: Script Loader Keywords: has-patch
Focuses: docs Cc:

Description

The phpdoc for the wp_get_inline_script_tag()/wp_print_inline_script_tag() functions incorrectly states that it is possible to use the wp_script_attributes filter to modify the attributes for inline scripts.

The documentation need to be updated to indicate that wp_inline_script_attributes should be used.

Change History (3)

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


9 months ago
#1

  • Keywords has-patch added

#2 @SergeyBiryukov
9 months ago

  • Milestone changed from Awaiting Review to 6.9

#3 @SergeyBiryukov
9 months ago

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

In 60225:

Docs: Correct filter name in wp_get_inline_script_tag() DocBlock.

Follow-up to [50167], [50409].

Props petitphp.
Fixes #63398.

Note: See TracTickets for help on using tickets.