File tree Expand file tree Collapse file tree
packages/plugin-sqlite-database-integration/wp-includes/sqlite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 "squizlabs/php_codesniffer" : " ^3.7" ,
1919 "wp-coding-standards/wpcs" : " ^3.1" ,
2020 "phpcompatibility/phpcompatibility-wp" : " *" ,
21- "php-parallel-lint/php-parallel-lint" : " ^1.3" ,
22- "yoast/phpunit-polyfills" : " 2.0.0" ,
23- "phpunit/phpunit" : " 8.5.52"
21+ "php-parallel-lint/php-parallel-lint" : " ^1.3"
2422 },
2523 "config" : {
2624 "allow-plugins" : {
Original file line number Diff line number Diff line change @@ -52,14 +52,12 @@ function sqlite_make_db_sqlite() {
5252 }
5353 $ translator ->commit ();
5454 } catch ( PDOException $ err ) {
55- $ err_data = $ err ->errorInfo ; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
56- $ err_code = $ err_data [1 ];
5755 $ translator ->rollback ();
5856 $ message = sprintf (
5957 'Error occurred while creating tables or indexes...<br />Query was: %s<br /> ' ,
6058 var_export ( $ query , true )
6159 );
62- $ message .= sprintf ( 'Error message is: %s ' , $ err_data [ 2 ] );
60+ $ message .= sprintf ( 'Error message is: %s ' , $ err -> getMessage () );
6361 wp_die ( $ message , 'Database Error! ' );
6462 }
6563
You can’t perform that action at this time.
0 commit comments