Make WordPress Core

Opened 4 months ago

Closed 3 months ago

#47095 closed defect (bug) (fixed)

PHPDocs: Correction in inline docs for last_query

Reported by: nextendweb Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Database Keywords: has-patch
Focuses: docs Cc:


In the file wp-includes/wp-db.php the $last_query property described as array in PHPDoc while it is a string.


         * Last query made
         * @since 0.71
         * @var array
        var $last_query;


         * Last query made
         * @since 0.71
         * @var string
        var $last_query;

Attachments (1)

47095.diff (353 bytes) - added by mukesh27 4 months ago.

Download all attachments as: .zip

Change History (4)

#1 @mukesh27
4 months ago

  • Keywords has-patch added
  • Summary changed from wpdb documentation last_query is a string to PHPDocs: Correction in inline docs for last_query
  • Type changed from enhancement to defect (bug)
  • Version 5.1.1 deleted

4 months ago

#2 @SergeyBiryukov
4 months ago

  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @SergeyBiryukov
3 months ago

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

In 45430:

Docs: Correct @type annotation for wpdb::$last_query.

Props nextendweb, mukesh27.
Fixes #47095.

Note: See TracTickets for help on using tickets.