Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#28360 closed defect (bug) (fixed)

$in_same_term and $in_same_cat should be unified

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

Description

In /wp-includes/link-template.php, $in_same_cat is used in the function, but $in_same_term is used in the documentation. They should be unified, and $in_same_term is better.

Attachments (2)

link-template.php (93.3 KB) - added by ixkaito 11 years ago.
link-template.diff (4.7 KB) - added by ixkaito 11 years ago.

Download all attachments as: .zip

Change History (7)

#1 follow-up: @SergeyBiryukov
11 years ago

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

#2 in reply to: ↑ 1 @ixkaito
11 years ago

  • Keywords has-patch added

Replying to SergeyBiryukov:

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

Thanks for your help.

#3 @SergeyBiryukov
11 years ago

  • Component changed from General to Posts, Post Types
  • Focuses template added
  • Milestone changed from Awaiting Review to 4.0
  • Version changed from 3.9.1 to 3.8

Missed in [25959].

#4 @SergeyBiryukov
11 years ago

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

In 28574:

Replace $in_same_cat with $in_same_term in adjacent post functions for consistency.

props ixkaito.
fixes #28360.

#5 @SergeyBiryukov
11 years ago

In 28575:

Fix typo in [28574].

see #28360.

Note: See TracTickets for help on using tickets.