Improved db.php to remove notices and possible fatal errors

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225356 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-04-04 22:30:30 +00:00
parent 5a8881f5ea
commit d4ef5c7c98
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,13 @@ require_once( PG4WP_ROOT.'/driver_'.DB_DRIVER.'.php');
// This loads up the wpdb class applying the appropriate changes to it, DON'T TOUCH !
$replaces = array(
'define( ' => '// define( ',
' OBJECT_K' => ' \'OBJECT_K\'',
' OBJECT' => ' \'OBJECT\'',
' ARRAY_A' => ' \'ARRAY_A\'',
' ARRAY_N' => ' \'ARRAY_N\'',
'class wpdb' => 'class wpdb2',
'new wpdb' => 'new wpdb2',
'mysql_' => 'wpsql_',
'<?php' => '',
'?>' => '',

View File

@@ -50,6 +50,7 @@ There is no screenshot for this plugin
== Changelog ==
* Improved db.php to remove notices and possible fatal errors
* Preliminary support for Wordpress 3.0
* Improved dates functions handling
* PG4WP now appears in WordPress control panel and can be enabled/disabled but this has no real effect