Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#22211 closed defect (bug) (fixed)

Correct wpdb::bail() description

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: ryan's profile ryan
Milestone: 3.5 Priority: normal
Severity: normal Version: 2.8
Component: Inline Docs Keywords: has-patch
Focuses: Cc:

Description

wpdb::bail() description (introduced in [10911]) appears to be inaccurate.

It skips wp_die() if wpdb::$show_errors if false, not true:
http://core.trac.wordpress.org/browser/tags/3.4.2/wp-includes/wp-db.php#L1506

Attachments (1)

22211.patch (401 bytes) - added by SergeyBiryukov 12 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
12 years ago

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

In [22254]:

Correct phpdoc for wpdb::bail(). wp_die() is issued when show_errors is true, not false. Props SergeyBiryukov. fixes #22211

Note: See TracTickets for help on using tickets.