WordPress.org

Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks 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
Milestone: 5.7 Priority: normal
Severity: normal Version: 1.5
Component: Query Keywords: has-patch
Focuses: docs Cc:

Description

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

Attachments (9)

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

Download all attachments as: .zip

Change History (12)

@jontyravi
5 weeks ago

I have added patch of this ticket

@jontyravi
5 weeks ago

@jontyravi
5 weeks ago

@jontyravi
5 weeks ago

@jontyravi
5 weeks ago

New patch

@jontyravi
5 weeks ago

@jontyravi
5 weeks ago

@jontyravi
5 weeks ago

New patch

@jontyravi
5 weeks ago

Remove space

#1 @hellofromTonya
5 weeks ago

  • Component changed from General to Query
  • Focuses coding-standards removed
  • Milestone changed from Awaiting Review to 5.7
  • Version changed from 5.6 to 1.5

Hello @jontyravi,

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

#2 @SergeyBiryukov
5 weeks ago

  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @SergeyBiryukov
5 weeks ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

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.