id = 'database-prefix'; $this->title = __( 'Change Database Table Prefix', 'better-wp-security' ); $this->description = __( 'Change the database table prefix that WordPress uses.', 'better-wp-security' ); $this->type = 'advanced'; parent::__construct(); } protected function render_description( $form ) { ?>

wp_ to all tables in the database where your content, users, and objects exist. For potential attackers, this means it is easier to write scripts that can target WordPress databases as all the important table names for 95% of sites are already known. Changing the wp_ prefix makes it more difficult for tools that are trying to take advantage of vulnerabilities in other places to affect the database of your site. Before using this tool, we strongly recommend creating a backup of your database.', 'better-wp-security' ); ?>

WARNING: Backup your database before using this tool.', 'better-wp-security' ), ITSEC_Core::get_backup_creation_page_url() ); ?>
__( 'Yes', 'better-wp-security' ), 'no' => __( 'No', 'better-wp-security' ), ); $form->set_option( 'change_prefix', 'no' ); ?>
base_prefix ) : ?>

wp_. You should change this.', 'better-wp-security' ); ?>

%1$s.', 'better-wp-security' ), esc_html( $wpdb->base_prefix ) ); ?>

add_select( 'change_prefix', $yes_or_no ); ?>

id ); if ( false === $result['new_prefix'] ) { ITSEC_Response::set_success( false ); } else { /* translators: 1: New database table prefix */ ITSEC_Response::add_message( sprintf( __( 'The database table prefix was successfully changed to %1$s.', 'better-wp-security' ), $result['new_prefix'] ) ); } } } } new ITSEC_Database_Prefix_Settings_Page();