Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#54264 closed enhancement (fixed)

Improve the documentation of the wp_insert_post tax_input parameter

Reported by: dingo_d's profile dingo_d Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.9 Priority: normal
Severity: normal Version: 5.9
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:


In the current docblock (which is pulled into the official docs) it's not clear what the structure of the tax_input parameter should be.

I'd like to add a PR with an extra explanation.

Change History (4)

This ticket was mentioned in PR #1758 on WordPress/wordpress-develop by dingo-d.

2 years ago

  • Keywords has-patch added

The following PR expands on the tax_input parameter docblock.

From the short description, you may miss the subtle things while using this parameter unless you dive into the code.

Trac ticket:

#2 @SergeyBiryukov
2 years ago

  • Milestone changed from Awaiting Review to 5.9

#3 @SergeyBiryukov
2 years ago

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

In 51913:

Docs: Improve documentation for the tax_input parameter of wp_insert_post().

Follow-up to [10222], [13217], [33922].

Props dingo_d.
Fixes #54264.

Note: See TracTickets for help on using tickets.