Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#17533 closed enhancement (fixed)

Incorrect wpdb class docs

Reported by: johnbillion Owned by: ryan
Milestone: 3.2 Priority: normal
Severity: normal Version: 3.2
Component: Inline Docs Keywords: has-patch commit
Focuses: Cc:


The inline docs for the wpdb class says:

 * WordPress Database Access Abstraction Object
 * It is possible to replace this class with your own
 * by setting the $wpdb global variable in wp-content/db.php
 * file with your class. You can name it wpdb also, since
 * this file will not be included, if the other file is
 * available.

This is incorrect because wp-includes/wp-db.php is always included.

Patch coming up.

Attachments (1)

17533.patch (643 bytes) - added by johnbillion 7 years ago.

Download all attachments as: .zip

Change History (4)

7 years ago

#1 @johnbillion
7 years ago

  • Keywords has-patch added

Patch which improves the inline doc for wpdb.

#2 @scribu
7 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.2
Last edited 7 years ago by scribu (previous) (diff)

#3 @ryan
7 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [18011]:

Correct phpdoc for replacing/extending thewpdb class. Props johnbillion. fixes #17533

Note: See TracTickets for help on using tickets.