Make WordPress Core

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#57058 closed defect (bug) (fixed)

Document the globals in unregister_taxonomy() and wp_term_is_shared().

Reported by: upadalavipul's profile upadalavipul Owned by: audrasjb's profile audrasjb
Milestone: 6.2 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch commit
Focuses: docs Cc:

Description

function commenting details needs to improve.

File Name: wp-includes/taxonomy.php
Function Name: unregister_taxonomy() and wp_term_is_shared()

Attachments (1)

57058.patch (728 bytes) - added by upadalavipul 16 months ago.

Download all attachments as: .zip

Change History (6)

#1 @mukesh27
16 months ago

  • Component changed from General to Taxonomy
  • Keywords has-patch added

Thanks @upadalavipul for ticket and patch!

Adding document for wp_term_is_shared() good.

global WP added when unregister_taxonomy() introduce in #35227.

#2 @mukesh27
16 months ago

  • Milestone changed from Awaiting Review to 6.2

The global WP remove in https://core.trac.wordpress.org/changeset/38747.

Moving to 6.2

#3 @audrasjb
16 months ago

  • Keywords commit added
  • Version trunk deleted

The patch looks good to me. Self assigning for commit.

#4 @audrasjb
16 months ago

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

In 54794:

Docs: Improve globals documentation in unregister_taxonomy() and wp_term_is_shared().

Props upadalavipul, mukesh27.
Fixes #57058.
See #56792.

#5 @SergeyBiryukov
16 months ago

In 54810:

Coding Standards: Declare $wp_taxonomies global at the top of unregister_taxonomy().

This brings some consistency with how the global is declared in other taxonomy functions.

Follow-up to [36243], [38747], [54794].

See #57058.

Note: See TracTickets for help on using tickets.