Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#47095 closed defect (bug) (fixed)

PHPDocs: Correction in inline docs for last_query

Reported by: nextendweb's profile nextendweb Owned by: sergeybiryukov's profile 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 6 years ago.

Download all attachments as: .zip

Change History (4)

#1 @mukesh27
6 years 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
6 years ago

#2 @SergeyBiryukov
6 years ago

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

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