WordPress.org

Make WordPress Core

Opened 7 weeks ago

Closed 4 weeks 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:

Description

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

Original:

<?php
        /**
         * Last query made
         *
         * @since 0.71
         * @var array
         */
        var $last_query;

Updated:

<?php
        /**
         * Last query made
         *
         * @since 0.71
         * @var string
         */
        var $last_query;

Attachments (1)

47095.diff (353 bytes) - added by mukesh27 7 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @mukesh27
7 weeks 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

@mukesh27
7 weeks ago

#2 @SergeyBiryukov
6 weeks ago

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

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