WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 3 months ago

Last modified 8 weeks ago

#26707 closed enhancement (fixed)

Document the `show_admin_column` argument

Reported by: johnbillion Owned by: DrewAPicture
Milestone: 3.9 Priority: normal
Severity: normal Version: 3.5
Component: Taxonomy Keywords: has-patch commit
Focuses: docs Cc:

Description

The show_admin_column argument which was added to register_taxonomy() in 3.5 is not documented and does not have a default value.

Attachments (1)

26707.diff (1.1 KB) - added by johnbillion 4 months ago.

Download all attachments as: .zip

Change History (9)

johnbillion4 months ago

comment:1 johnbillion4 months ago

  • Keywords has-patch added

Patch

comment:2 DrewAPicture4 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.9

This and many other functions are in line for converting the $args array docs to a hash notation, 26707.diff looks good for now though. Thanks.

comment:3 DrewAPicture3 months ago

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

In 26912:

Add inline documentation for the 'show_admin_column' argument added to register_taxonomy() in 3.5.

Also adds a 'show_admin_column' value to the defaults array.

Props johnbillion.
Fixes #26707.

comment:4 DrewAPicture3 months ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

@johnbillion:

Reflecting on [26912], adding the default is obviously very "codey" and not so much on the "documenting-ey", just want to make sure that that value is indeed supposed to default to false, as we obviously enable it for both categories and tags out of the box.

comment:5 johnbillion3 months ago

Correct, the show_admin_column argument is false by default.

It's set to `true` for categories and tags and then only taxonomies which set it to true are displayed on post listing screens and media listing screens.

comment:6 DrewAPicture3 months ago

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

comment:7 DrewAPicture8 weeks ago

  • Focuses docs added

comment:8 DrewAPicture8 weeks ago

  • Component changed from Inline Docs to Taxonomy
Note: See TracTickets for help on using tickets.