Making WordPress.org

Opened 2 years ago

Closed 4 months ago

#6371 closed defect (bug) (fixed)

'0' (zero) array key not displayed in Code Reference

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

In the _n_noop() function DocBlock, the returned array includes the '0' (zero) array key.

On the _n_noop() function page, while the key description is displayed, the key itself is not, see the screenshot.

Attachments (1)

6371.png (67.7 KB) - added by SergeyBiryukov 2 years ago.

Download all attachments as: .zip

Change History (4)

@SergeyBiryukov
2 years ago

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


2 years ago

#2 @coffee2code
4 months ago

#6433 was marked as a duplicate.

#3 @coffee2code
4 months ago

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

Fixed in wporg-developer/c66593d:

Formatting: Don't prevent display of literal '0' as param hash key

Props SergeyBiryukov, audrasjb, dd32, coffee2code.
Fixes #6371

Note: See TracTickets for help on using tickets.