Changeset 27925 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 04/03/2014 04:05:31 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r27503 r27925 1387 1387 * @since 3.9.0 1388 1388 * 1389 * @param bool $allow_bail Optional. Allows the function to bail, default true. If this is set 1390 * to false, you will need to handle the lack of database connection 1391 * manually. 1392 * 1389 1393 * @return bool True if the connection is up. 1390 1394 */ 1391 function check_connection( ) {1395 function check_connection( $allow_bail = true ) { 1392 1396 if ( $this->use_mysqli ) { 1393 1397 if ( @mysqli_ping( $this->dbh ) ) { … … 1429 1433 // Let's just return and hope for the best. 1430 1434 if ( did_action( 'template_redirect' ) ) { 1435 return false; 1436 } 1437 1438 if ( ! $allow_bail ) { 1431 1439 return false; 1432 1440 }
Note: See TracChangeset
for help on using the changeset viewer.