WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#14624 closed enhancement (fixed)

Rename 'caller_get_posts' to 'ignore_stickies'

Reported by: scribu Owned by: nacin
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch commit
Focuses: Cc:

Description

The 'caller_get_posts' query flag should be renamed to 'ignore_stickies', since that's the only thing it's used for:

http://codex.wordpress.org/Function_Reference/query_posts#Sticky_Post_Parameters

It's original purpose, to signal to WP_Query that get_posts() is the origin of the call, is not relevant anymore.

Attachments (1)

14624.diff (2.2 KB) - added by scribu 7 years ago.

Download all attachments as: .zip

Change History (7)

@scribu
7 years ago

#1 @scribu
7 years ago

  • Keywords has-patch commit added

#2 follow-up: @nacin
7 years ago

  • Owner set to nacin
  • Status changed from new to accepted

+1. Just for completeness I would suggest ignore_sticky_posts.

#3 @scribu
7 years ago

Sure, as long as it has 'sticky' in there. :)

#4 in reply to: ↑ 2 @markmcwilliams
7 years ago

Replying to nacin:

+1. Just for completeness I would suggest ignore_sticky_posts.

Yeah, what he said! :) +100

#5 @markjaquith
7 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed
  • Version set to 3.0.1

(In [15589]) Rename caller_get_posts WP_Query flag to ignore_sticky_posts, because that is the only thing it does. fixes #14624. props scribu

#6 @scribu
6 years ago

  • Version 3.0.1 deleted
Note: See TracTickets for help on using tickets.