prefix; $details = array( 'prefix' => $prefix, ); // Check for common default prefixes. $default_prefixes = array( 'wp_', 'wordpress_', 'wp1_' ); if ( in_array( $prefix, $default_prefixes, true ) ) { return static::warning( sprintf( /* translators: %s: database prefix */ __( 'Your database uses the default table prefix "%s". While not critical, using a custom prefix adds a small layer of protection against automated attacks that target default WordPress installations.', '0-day-analytics' ), $prefix ), __( 'Changing the database prefix on an existing site requires careful database modifications and is best done by a developer. For new sites, set a custom prefix during installation.', '0-day-analytics' ), $details ); } return static::pass( sprintf( /* translators: %s: database prefix */ __( 'Your database uses a custom table prefix "%s", which helps protect against automated attacks targeting default WordPress installations.', '0-day-analytics' ), $prefix ), $details ); } } }