wp-signup.php


Lines:

1 to 100 of 214
<?php


/** Sets up the WordPress Environment. */
require __DIR__ . '/wp-load.php';

add_filter( 'wp_robots', 'wp_robots_no_robots' );

require __DIR__ . '/wp-blog-header.php';

nocache_headers();

if ( is_array( get_site_option( 'illegal_names' ) ) && isset( $_GET['new'] ) && in_array( $_GET['new'], get_site_option( 'illegal_names' ), true ) ) {
  wp_redirect( network_home_url() );
  die();
}

/* function do_signup_header() – Prints signup_header via wp_head */
add_action( 'wp_head', 'do_signup_header' )  <;

if ( ! is_multisite() ) {
  wp_redirect( wp_registration_url() );
  die();
}

if ( ! is_main_site() ) {
  wp_redirect( network_site_url( 'wp-signup.php' ) );
  die();
}

// Fix for page title.
$wp_query->is_404 = false;


/**
 * Fires before the Site Sign-up page is loaded.
 *
 * @since 4.4.0
 */
do_action( 'before_signup_header' );

/* function wpmu_signup_stylesheet() – Prints styles for front-end Multisite signup pages */

add_action( 'wp_head', 'wpmu_signup_stylesheet' )  <;
get_header( 'wp-signup' );


/**
 * Fires before the site Sign-up form.
 *
 * @since 3.0.0
 */
do_action( 'before_signup_form' );
?>
<div id="signup-content" class="widecolumn">
<div class="mu_register wp-signup-container" role="main">
<?php
/* function show_blog_form() – Generates and displays the Signup and Create Site forms */

/* function validate_blog_form() – Validate the new site signup */

/* function show_user_form() – Displays the fields for the new user account registration form. */

/* function validate_user_form() – Validate user signup name and email */

/* function signup_another_blog() – Allow returning users to sign up for another site */

/* function validate_another_blog_signup() – Validate a new site signup for an existing user. */

/* function confirm_another_blog_signup() – Confirm a new site signup. */

/* function signup_user() – Setup the new user signup process */

/* function validate_user_signup() – Validate the new user signup */

/* function confirm_user_signup() – New user signup confirmation */

/* function signup_blog() – Shows a form for a user or visitor to sign up for a new site. */

/* function validate_blog_signup() – Validate new site signup */

/* function confirm_blog_signup() – New site signup confirmation */

/* function signup_get_available_languages() – Retrieves languages available during the site/user sign-up process. */

// Main.
$active_signup = get_site_option( 'registration', 'none' );


/**
 * Filters the type of site sign-up.
 *
 * @since 3.0.0
 *
 * @param string $active_signup String that returns registration type. The value can be
 *                              'all', 'none', 'blog', or 'user'.
 */
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );

if ( current_user_can( 'manage_network' ) ) {

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      API Letters: ,,