Skip to content

Commit 90c5931

Browse files
committed
Address code review feedback
1 parent 1dc22cf commit 90c5931

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Config_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 ) ) {

0 commit comments

Comments
 (0)