Ticket #2144: wp-db.php.diff
| File wp-db.php.diff, 809 bytes (added by johnjosephbachir, 6 years ago) |
|---|
-
wp-includes/wp-db.php
96 96 // Is error output turned on or not.. 97 97 if ( $this->show_errors ) { 98 98 // If there is an error then take note of it 99 $errornumber = mysql_errno(); 100 $errorlink = "http://www.google.com/search?num=100&hl=en&lr=&safe=off&c2coff=1&rls=en&q=site%3Awww.mysqlfreaks.com%2Ferrors+".$errornumber."&btnG=Search"; 99 101 print "<div id='error'> 100 <p class='wpdberror'><strong>WordPress database error :</strong> [$str]<br />102 <p class='wpdberror'><strong>WordPress database error <a href='$errorlink'>".$errornumber."</a>:</strong> [$str]<br /> 101 103 <code>$this->last_query</code></p> 102 104 </div>"; 103 105 } else {
