WordPress.org

Make WordPress Core

Opened 18 months ago

Closed 18 months ago

Last modified 17 months ago

#45705 closed defect (bug) (fixed)

Docs: Fix a typo in description for wp_add_inline_script()

Reported by: jankimoradiya Owned by: SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: minor Version:
Component: Script Loader Keywords: has-patch
Focuses: docs Cc:

Description

The first sentence of the wp_add_inline_script() DocBlock contains a typo.

Code will only be added if the script in already in the queue.

Should be

Code will only be added if the script is already in the queue.

Attachments (3)

#45705.patch (627 bytes) - added by jankimoradiya 18 months ago.
Updated "Code will only be added if the script in already in the queue." To "Code will only be added if the script is already in the queue." for wp_add_inline_script() function documentation.
#45705.2.patch (627 bytes) - added by jankimoradiya 18 months ago.
#45705.3.patch (663 bytes) - added by jankimoradiya 18 months ago.

Download all attachments as: .zip

Change History (8)

@jankimoradiya
18 months ago

Updated "Code will only be added if the script in already in the queue." To "Code will only be added if the script is already in the queue." for wp_add_inline_script() function documentation.

#1 @jankimoradiya
18 months ago

Please review my last attachment "#45705.3.patch".

Last edited 18 months ago by jankimoradiya (previous) (diff)

#2 @mukesh27
18 months ago

  • Focuses docs added
  • Severity changed from normal to minor
  • Summary changed from Fix a typo in the Documentation description for wp_add_inline_script() to Docs: Fix a typo in description for wp_add_inline_script()

Hi @jankimoradiya, thanks for the patch!

45705.3.patch looks good for me.

#3 @SergeyBiryukov
18 months ago

  • Component changed from General to Script Loader
  • Milestone changed from Awaiting Review to 5.1

#4 @SergeyBiryukov
18 months ago

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

In 44350:

Docs: Fix typo in wp_add_inline_script() and wp_add_inline_style() description.

Props jankimoradiya.
Fixes #45705.

#5 @pento
17 months ago

#45170 was marked as a duplicate.

Note: See TracTickets for help on using tickets.