GithubHelp home page GithubHelp logo

Comments (1)

hamishwillee avatar hamishwillee commented on July 17, 2024

In /wp-includes/pluggable.php, changed:

   function wp_new_user_notification($user_id, $plaintext_pass = '') {
    $user = get_userdata( $user_id );

    // The blogname option is escaped with esc_html on the way into the database in sanitize_option
    // we want to reverse this for the plain text arena of emails.
    $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);

    $message  = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n";
    $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
    $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n";

    @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message);

    if ( empty($plaintext_pass) )
            return;

    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n";
    $message .= wp_login_url() . "\r\n";

    wp_mail($user->user_email, sprintf(__('[%s] Your username and password'), $blogname), $message);

}
endif;

To:

    $message  = "Thank you for your interest in becoming a wiki editor! \r\n\r\n";
    $message .= "To access the site:\r\n";
    $message .= "- Open:" .wp_login_url() . "\r\n";
    $message .= "- Enter the (case sensitive) first level authentication details: \r\n";
    $message .= "   Username: ArduPilot \r\n";
    $message .= "   Password: 3DRobotics \r\n";
    $message .= "- Enter your WordPress credentials: \r\n";
    $message .= sprintf(__('   Username: %s'), $user->user_login) . "\r\n";
    $message .= sprintf(__('   Password: %s'), $plaintext_pass) . "\r\n";
    $message .= "\r\n";
    $message .= "Once you have logged-in, you can access your *authorised* sites from the top-left menu 'My Sites'. \r\n";
    $message .= "\r\n";
    $message .= "Notes:\r\n";
    $message .= ' - The Wiki Editing Guide (planner.ardupilot.com/wiki/common-editor-information-resource/) explains how to create and edit topics.';
    $message .= "\r\n";
    $message .= " - Special care needs to be taken when working with 'common' topics.\r\n";
    $message .= " - We will send you an invitation to the Wiki Editors Discussion Google-group shortly. It is a great place to ask questions and get feedback on your edits. \r\n";
    $message .= "\r\n";
    $message .= "Thanks again. If you have any questions or issues, please contact [email protected]. \r\n";

from ardupilot_wiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.