Skip to:
Content

bbPress.org

Ticket #1879: bbp-remove-dbpassword.diff

File bbp-remove-dbpassword.diff, 1.8 KB (added by Omicron7, 9 years ago)

Removes pre-populated DB User, Password and Name

  • bbp-admin/bbp-settings.php

     
    10301030function bbp_converter_setting_callback_dbuser() {
    10311031?>
    10321032
    1033         <input name="_bbp_converter_db_user" type="text" id="_bbp_converter_db_user" value="<?php bbp_form_option( '_bbp_converter_db_user', DB_USER ); ?>" class="medium-text" />
     1033        <input name="_bbp_converter_db_user" type="text" id="_bbp_converter_db_user" value="<?php bbp_form_option( '_bbp_converter_db_user' ); ?>" class="medium-text" />
    10341034        <label for="_bbp_converter_db_user"><?php _e( 'User for your database connection', 'bbpress' ); ?></label>
    10351035
    10361036<?php
     
    10441044function bbp_converter_setting_callback_dbpass() {
    10451045?>
    10461046
    1047         <input name="_bbp_converter_db_pass" type="password" id="_bbp_converter_db_pass" value="<?php bbp_form_option( '_bbp_converter_db_pass', DB_PASSWORD ); ?>" class="medium-text" />
     1047        <input name="_bbp_converter_db_pass" type="password" id="_bbp_converter_db_pass" value="<?php bbp_form_option( '_bbp_converter_db_pass' ); ?>" class="medium-text" />
    10481048        <label for="_bbp_converter_db_pass"><?php _e( 'Password to access the database', 'bbpress' ); ?></label>
    10491049
    10501050<?php
     
    10581058function bbp_converter_setting_callback_dbname() {
    10591059?>
    10601060
    1061         <input name="_bbp_converter_db_name" type="text" id="_bbp_converter_db_name" value="<?php bbp_form_option( '_bbp_converter_db_name', DB_NAME ); ?>" class="medium-text" />
     1061        <input name="_bbp_converter_db_name" type="text" id="_bbp_converter_db_name" value="<?php bbp_form_option( '_bbp_converter_db_name' ); ?>" class="medium-text" />
    10621062        <label for="_bbp_converter_db_name"><?php _e( 'Name of the database with your old forum data', 'bbpress' ); ?></label>
    10631063
    10641064<?php