Making WordPress.org

Opened 9 years ago

Closed 9 years ago

#1479 closed defect (bug) (fixed)

Nested arrays of parameters should be parsed as nested lists

Reported by: ericdaams's profile ericdaams Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

  1. Go to https://developer.wordpress.org/reference/functions/register_post_type/
  2. Inside the $args parameter, the rewrite list item should have slug, with_front, feeds, pages and ep_mask nested underneath it as a nested list, not as sibling list items.


Change History (2)

#1 @coffee2code
9 years ago

  • Owner set to coffee2code
  • Status changed from new to accepted

#2 @coffee2code
9 years ago

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

In 2205:

developer.wordpress.org: Display nested hash parameters in a nested fashion.

This just improves the hack used to parse hash parameter notation since the parser doesn't recognize hash parameters as anything more than a bunch of text. Previously it only displayed all hash parameters peer to each other regardless of nesting depth.

For examples of nested hash parameters, see:

Fixes #1479.

Note: See TracTickets for help on using tickets.