Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#52027 closed defect (bug) (fixed)

@global $wpdb is used but not define in documentation of this function get_posts()

Reported by: jontyravi Owned by: SergeyBiryukov
Priority: normal Milestone: 5.7
Component: Query Version: 1.5
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

@global $wpdb is used but not define in documentation of this function get_posts()

Attachments (9)

52027.patch (383 bytes ) - added by jontyravi 6 years ago.
I have added patch of this ticket
52027.2.patch (378 bytes ) - added by jontyravi 6 years ago.
52027.3.patch (605 bytes ) - added by jontyravi 6 years ago.
52027.4.patch (479 bytes ) - added by jontyravi 6 years ago.
52027.5.patch (552 bytes ) - added by jontyravi 6 years ago.
New patch
52027.6.patch (569 bytes ) - added by jontyravi 6 years ago.
52027.7.patch (479 bytes ) - added by jontyravi 6 years ago.
52027.8.patch (424 bytes ) - added by jontyravi 6 years ago.
New patch
52027.9.patch (434 bytes ) - added by jontyravi 6 years ago.
Remove space

Download all attachments as: .zip

Change History (12)

@jontyravi
6 years ago

I have added patch of this ticket

@jontyravi
6 years ago

@jontyravi
6 years ago

@jontyravi
6 years ago

@jontyravi
6 years ago

New patch

@jontyravi
6 years ago

@jontyravi
6 years ago

@jontyravi
6 years ago

New patch

@jontyravi
6 years ago

Remove space

#1 @hellofromTonya
6 years ago

  • Component GeneralQuery
  • Focuses coding-standards removed
  • Milestone Awaiting Review5.7
  • Version 5.61.5

Hello @jontyravi,

Welcome to Trac! Thank you for this ticket and the patch. Moving into the 5.7 milestone.

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Status newreviewing

#3 @SergeyBiryukov
6 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 49792:

Docs: Document the usage of $wpdb global in WP_Query::get_posts() and ::set_found_posts().

Props jontyravi.
Fixes #52027.

Note: See TracTickets for help on using tickets.