File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,10 +225,10 @@ public function create( $_, $assoc_args ) {
225225 if ( ! $ is_sqlite ) {
226226 $ errors = [];
227227 if ( ! isset ( $ assoc_args ['dbname ' ] ) ) {
228- $ errors [] = 'missing --dbname parameter (Set the database name.) ' ;
228+ $ errors [] = 'missing --dbname parameter ' ;
229229 }
230230 if ( ! isset ( $ assoc_args ['dbuser ' ] ) ) {
231- $ errors [] = 'missing --dbuser parameter (Set the database user.) ' ;
231+ $ errors [] = 'missing --dbuser parameter ' ;
232232 }
233233 if ( ! empty ( $ errors ) ) {
234234 WP_CLI ::error (
@@ -1531,7 +1531,7 @@ private function escape_config_value( $key, $value ) {
15311531 * @return bool
15321532 */
15331533 private static function is_sqlite_integration_active () {
1534- $ wp_content_dir = defined ( 'WP_CONTENT_DIR ' ) ? WP_CONTENT_DIR : ABSPATH . 'wp-content ' ;
1534+ $ wp_content_dir = defined ( 'WP_CONTENT_DIR ' ) ? WP_CONTENT_DIR : rtrim ( ABSPATH , ' / \\' ) . '/ wp-content ' ;
15351535 $ db_dropin_path = $ wp_content_dir . '/db.php ' ;
15361536
15371537 if ( ! is_readable ( $ db_dropin_path ) ) {
You can’t perform that action at this time.
0 commit comments