Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#45705 closed defect (bug) (fixed)

Docs: Fix a typo in description for wp_add_inline_script()

Reported by: jankimoradiya's profile jankimoradiya Owned by: sergeybiryukov's profile 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 6 years 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 6 years ago.
#45705.3.patch (663 bytes) - added by jankimoradiya 6 years ago.

Download all attachments as: .zip

Change History (8)

@jankimoradiya
6 years 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
6 years ago

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

Last edited 6 years ago by jankimoradiya (previous) (diff)

#2 @mukesh27
6 years 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
6 years ago

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

#4 @SergeyBiryukov
6 years 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
6 years ago

#45170 was marked as a duplicate.

Note: See TracTickets for help on using tickets.