Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#52027 closed defect (bug) (fixed)

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

Reported by: jontyravi's profile jontyravi Owned by: sergeybiryukov's profile 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 4 years ago.
I have added patch of this ticket
52027.2.patch (378 bytes) - added by jontyravi 4 years ago.
52027.3.patch (605 bytes) - added by jontyravi 4 years ago.
52027.4.patch (479 bytes) - added by jontyravi 4 years ago.
52027.5.patch (552 bytes) - added by jontyravi 4 years ago.
New patch
52027.6.patch (569 bytes) - added by jontyravi 4 years ago.
52027.7.patch (479 bytes) - added by jontyravi 4 years ago.
52027.8.patch (424 bytes) - added by jontyravi 4 years ago.
New patch
52027.9.patch (434 bytes) - added by jontyravi 4 years ago.
Remove space

Download all attachments as: .zip

Change History (12)

@jontyravi
4 years ago

I have added patch of this ticket

@jontyravi
4 years ago

@jontyravi
4 years ago

@jontyravi
4 years ago

@jontyravi
4 years ago

New patch

@jontyravi
4 years ago

@jontyravi
4 years ago

@jontyravi
4 years ago

New patch

@jontyravi
4 years ago

Remove space

#1 @hellofromTonya
4 years 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
4 years ago

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

#3 @SergeyBiryukov
4 years 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.