Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#28360 closed defect (bug) (fixed)

$in_same_term and $in_same_cat should be unified

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

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 12 years ago.
link-template.diff​ (4.7 KB ) - added by ixkaito 12 years ago.

Download all attachments as: .zip

Change History (7)

#1 follow-up: @SergeyBiryukov
12 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
12 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
12 years ago

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

Missed in [25959].

#4 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 28574:

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

props ixkaito.
fixes #28360.

#5 @SergeyBiryukov
12 years ago

In 28575:

Fix typo in [28574].

see #28360.

Note: See TracTickets for help on using tickets.