WordPress.org

Make WordPress Core

#22211 closed defect (bug) (fixed)

Correct wpdb::bail() description

Reported by: SergeyBiryukov Owned by: 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 21 months ago.

Download all attachments as: .zip

Change History (2)

SergeyBiryukov21 months ago

comment:1 ryan21 months 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.